aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/questionnaire
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2011-08-18 23:38:39 +0200
committerIgor Wiedler <igor@wiedler.ch>2011-08-18 23:44:30 +0200
commitc5cef773c4811d2041c56a9c34da94a30f8190e1 (patch)
treed3286beea76cbb7edc85732f6ccb2c4ea9fb4245 /phpBB/includes/questionnaire
parentfd08cd8dd013c0d1bf8e18611f798c6987d9de9c (diff)
downloadforums-c5cef773c4811d2041c56a9c34da94a30f8190e1.tar
forums-c5cef773c4811d2041c56a9c34da94a30f8190e1.tar.gz
forums-c5cef773c4811d2041c56a9c34da94a30f8190e1.tar.bz2
forums-c5cef773c4811d2041c56a9c34da94a30f8190e1.tar.xz
forums-c5cef773c4811d2041c56a9c34da94a30f8190e1.zip
[feature/request-class] Adjust code base to do html decoding manually
PHPBB3-9716
Diffstat (limited to 'phpBB/includes/questionnaire')
-rw-r--r--phpBB/includes/questionnaire/questionnaire.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/questionnaire/questionnaire.php b/phpBB/includes/questionnaire/questionnaire.php
index ed61cf82d0..fa12d570df 100644
--- a/phpBB/includes/questionnaire/questionnaire.php
+++ b/phpBB/includes/questionnaire/questionnaire.php
@@ -152,11 +152,11 @@ class phpbb_questionnaire_system_data_provider
// Start discovering the IPV4 server address, if available
// Try apache, IIS, fall back to 0.0.0.0
- $server_address = $request->server('SERVER_ADDR', $request->server('LOCAL_ADDR', '0.0.0.0'));
+ $server_address = htmlspecialchars_decode($request->server('SERVER_ADDR', $request->server('LOCAL_ADDR', '0.0.0.0')));
return array(
'os' => PHP_OS,
- 'httpd' => $request->server('SERVER_SOFTWARE'),
+ 'httpd' => htmlspecialchars_decode($request->server('SERVER_SOFTWARE')),
// we don't want the real IP address (for privacy policy reasons) but only
// a network address to see whether your installation is running on a private or public network.
'private_ip' => $this->is_private_ip($server_address),