aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-08-31 21:29:11 +0200
committerNils Adermann <naderman@naderman.de>2010-09-17 14:08:41 +0200
commit204ee4714b2a0be1513e6a30b255477f39dac5cb (patch)
treeb00b8910d2b1da3e3f5670938f05f02eb6f3f557 /phpBB/ucp.php
parent456de639123ae3da6320bed6140ab69ac9925e74 (diff)
downloadforums-204ee4714b2a0be1513e6a30b255477f39dac5cb.tar
forums-204ee4714b2a0be1513e6a30b255477f39dac5cb.tar.gz
forums-204ee4714b2a0be1513e6a30b255477f39dac5cb.tar.bz2
forums-204ee4714b2a0be1513e6a30b255477f39dac5cb.tar.xz
forums-204ee4714b2a0be1513e6a30b255477f39dac5cb.zip
[feature/request-class] Removal of direct access to some superglobals
PHPBB3-9716
Diffstat (limited to 'phpBB/ucp.php')
-rw-r--r--phpBB/ucp.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index f5a2ec9648..f26f7b048e 100644
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -136,13 +136,17 @@ switch ($mode)
case 'delete_cookies':
+ global $request;
+
// Delete Cookies with dynamic names (do NOT delete poll cookies)
if (confirm_box(true))
{
$set_time = time() - 31536000;
- foreach ($_COOKIE as $cookie_name => $cookie_data)
+ foreach ($request->variable_names(phpbb_request_interface::COOKIE) as $cookie_name)
{
+ $cookie_data = $request->variable($cookie_name, '', true, phpbb_request_interface::COOKIE);
+
// Only delete board cookies, no other ones...
if (strpos($cookie_name, $config['cookie_name'] . '_') !== 0)
{