aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/path_helper.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-04-15 13:13:37 -0700
committerCesar G <prototech91@gmail.com>2014-04-22 15:21:02 -0700
commite287eea2c6c1530c843ca57d75c35f0e5062507d (patch)
tree6af585312b2f92922e2500928e3aa631d98d75d8 /phpBB/phpbb/path_helper.php
parent9e605b1338821b5866102c527264304e91d8240f (diff)
downloadforums-e287eea2c6c1530c843ca57d75c35f0e5062507d.tar
forums-e287eea2c6c1530c843ca57d75c35f0e5062507d.tar.gz
forums-e287eea2c6c1530c843ca57d75c35f0e5062507d.tar.bz2
forums-e287eea2c6c1530c843ca57d75c35f0e5062507d.tar.xz
forums-e287eea2c6c1530c843ca57d75c35f0e5062507d.zip
[ticket/11508] Allow equal sign in parameter value.
PHPBB3-11508
Diffstat (limited to 'phpBB/phpbb/path_helper.php')
-rw-r--r--phpBB/phpbb/path_helper.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/phpbb/path_helper.php b/phpBB/phpbb/path_helper.php
index a9b520be15..f92c2b72b2 100644
--- a/phpBB/phpbb/path_helper.php
+++ b/phpBB/phpbb/path_helper.php
@@ -254,16 +254,18 @@ class path_helper
foreach ($args as $argument)
{
- $arguments = explode('=', $argument);
- $key = $arguments[0];
- unset($arguments[0]);
+ if (empty($argument))
+ {
+ continue;
+ }
+ list($key, $value) = explode('=', $argument, 2);
if ($key === '')
{
continue;
}
- $params[$key] = $arguments[1];
+ $params[$key] = $value;
}
}
else