aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-11-04 16:54:45 +0100
committerMarc Alexander <admin@m-a-styles.de>2014-11-04 16:54:45 +0100
commit32881dbe31a945b6d2449a3f7e1bf7c5e73cd0a6 (patch)
tree981f08ea494fff473e7cb48687b72c8a30a2399a /phpBB
parent3986470b3c77240310f51bb101cccf180b9e4c1e (diff)
downloadforums-32881dbe31a945b6d2449a3f7e1bf7c5e73cd0a6.tar
forums-32881dbe31a945b6d2449a3f7e1bf7c5e73cd0a6.tar.gz
forums-32881dbe31a945b6d2449a3f7e1bf7c5e73cd0a6.tar.bz2
forums-32881dbe31a945b6d2449a3f7e1bf7c5e73cd0a6.tar.xz
forums-32881dbe31a945b6d2449a3f7e1bf7c5e73cd0a6.zip
[ticket/13280] Only run sanitizer for server superglobal and modify tests
PHPBB3-13280
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/symfony_request.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/symfony_request.php b/phpBB/phpbb/symfony_request.php
index 23e5e6e29f..02d22c480f 100644
--- a/phpBB/phpbb/symfony_request.php
+++ b/phpBB/phpbb/symfony_request.php
@@ -31,7 +31,8 @@ class symfony_request extends Request
};
// This function is meant for additional handling of server variables
- $server_sanitizer = function(&$value, $key) {
+ $server_sanitizer = function(&$value, $key) use ($sanitizer) {
+ $sanitizer($value, $key);
$value = str_replace('&amp;', '&', $value);
};
@@ -43,11 +44,10 @@ class symfony_request extends Request
array_walk_recursive($get_parameters, $sanitizer);
array_walk_recursive($post_parameters, $sanitizer);
- array_walk_recursive($server_parameters, $sanitizer);
array_walk_recursive($files_parameters, $sanitizer);
array_walk_recursive($cookie_parameters, $sanitizer);
- // Run additional sanitizer for server superglobal
+ // Run special sanitizer for server superglobal
array_walk_recursive($server_parameters, $server_sanitizer);
parent::__construct($get_parameters, $post_parameters, array(), $cookie_parameters, $files_parameters, $server_parameters);