From e287eea2c6c1530c843ca57d75c35f0e5062507d Mon Sep 17 00:00:00 2001 From: Cesar G Date: Tue, 15 Apr 2014 13:13:37 -0700 Subject: [ticket/11508] Allow equal sign in parameter value. PHPBB3-11508 --- phpBB/phpbb/path_helper.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'phpBB/phpbb/path_helper.php') 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 -- cgit v1.2.1