1
0
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:
Callum Macrae 2011-10-22 16:12:08 +01:00 committed by Igor Wiedler
parent 69d9f5dd04
commit dbccb57abb

View File

@ -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;
}