aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-11-03 16:07:32 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-11-03 16:07:32 +0100
commit6cc7da0c9c0fc8515aad780fba5de5b3860e5d56 (patch)
tree23729d86735c62843888cdb26c29e06fa6d6683e /phpBB/phpbb
parent0e772afb9db640e54e84cfccaddcf74f3edbb3fb (diff)
downloadforums-6cc7da0c9c0fc8515aad780fba5de5b3860e5d56.tar
forums-6cc7da0c9c0fc8515aad780fba5de5b3860e5d56.tar.gz
forums-6cc7da0c9c0fc8515aad780fba5de5b3860e5d56.tar.bz2
forums-6cc7da0c9c0fc8515aad780fba5de5b3860e5d56.tar.xz
forums-6cc7da0c9c0fc8515aad780fba5de5b3860e5d56.zip
[ticket/13280] Properly format the current page and add sanitizer to tests
PHPBB3-13280
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/session.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/session.php b/phpBB/phpbb/session.php
index 14b4c63207..a06ff9c594 100644
--- a/phpBB/phpbb/session.php
+++ b/phpBB/phpbb/session.php
@@ -43,7 +43,7 @@ class session
// First of all, get the request uri...
$script_name = $symfony_request->getScriptName();
- $args = explode('&', $symfony_request->getQueryString());
+ $args = explode('&amp;', $symfony_request->getQueryString());
// If we are unable to get the script name we use REQUEST_URI as a failover and note it within the page array for easier support...
if (!$script_name)
@@ -61,8 +61,8 @@ class session
// Since some browser do not encode correctly we need to do this with some "special" characters...
// " -> %22, ' => %27, < -> %3C, > -> %3E
- $find = array('"', "'", '<', '>');
- $replace = array('%22', '%27', '%3C', '%3E');
+ $find = array('"', "'", '<', '>', '&quot;', '&lt;', '&gt;');
+ $replace = array('%22', '%27', '%3C', '%3E', '%22', '%3C', '%3E');
foreach ($args as $key => $argument)
{