diff options
author | Nils Adermann <naderman@naderman.de> | 2008-11-24 00:20:33 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2008-11-24 00:20:33 +0000 |
commit | 07e9b83a3de0264916a058b9cf180b91b297604f (patch) | |
tree | 386aed44943159d6634f74ee756c4073d5dbab19 /phpBB/common.php | |
parent | 8427ae3fd4bd0055931579d18cb9d43d69f72a90 (diff) | |
download | forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar.gz forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar.bz2 forums-07e9b83a3de0264916a058b9cf180b91b297604f.tar.xz forums-07e9b83a3de0264916a058b9cf180b91b297604f.zip |
- updated all code to use the request class instead of any direct access to
super globals
- disabled super globals in common.php. See commit r9101 for
more information
- cleaned up/simplified a few lines along the way.
git-svn-id: file:///svn/phpbb/trunk@9102 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/common.php')
-rw-r--r-- | phpBB/common.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/common.php b/phpBB/common.php index 97c02d4a23..882e782ebb 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -200,6 +200,9 @@ require(PHPBB_ROOT_PATH . 'includes/utf/utf_tools.' . PHP_EXT); // Set PHP error handler to ours set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler'); +// enforce the use of the request class +request::disable_super_globals(); + // Instantiate some basic classes $user = new user(); $auth = new auth(); |