mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02:00
[ticket/10270] Reduced calls to split in phpbb.parse_querystring.
PHPBB3-10270
This commit is contained in:
parent
69d9f5dd04
commit
dbccb57abb
@ -187,12 +187,13 @@ phpbb.confirm = function(msg, callback, fadedark) {
|
||||
* @returns array The array created.
|
||||
*/
|
||||
phpbb.parse_querystring = function(string) {
|
||||
var end = {}, i;
|
||||
var end = {}, i, split;
|
||||
|
||||
string = string.split('&');
|
||||
for (i = 0; i < string.length; i++)
|
||||
{
|
||||
end[string[i].split('=')[0]] = decodeURIComponent(string[i].split('=')[1]);
|
||||
split = string[i].split('=');
|
||||
end[split[0]] = decodeURIComponent(split[1]);
|
||||
}
|
||||
return end;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user