From 5096de48ee3ff74e1664ee473553cf73eb401af5 Mon Sep 17 00:00:00 2001 From: tokul Date: Sat, 10 Sep 2005 08:41:33 +0000 Subject: [PATCH] adding rg=on test git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10082 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/configtest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/configtest.php b/src/configtest.php index 1710aade..360f1cfb 100644 --- a/src/configtest.php +++ b/src/configtest.php @@ -122,6 +122,21 @@ if (function_exists('mb_internal_encoding') && do_err($mb_error); } +/** + * We code with register_globals = off. SquirrelMail should work in such setup + * since 1.2.9 and 1.3.0. Running SquirrelMail with register_globals = on can + * cause variable corruption and security issues. Globals can be turned off in + * php.ini, webserver config and .htaccess files. Scripts can turn off globals only + * in php 4.2.3 or older. + */ +if ((bool) ini_get('register_globals')) { + $rg_error='You have enabled php register_globals.' + .' Running PHP installation with register_globals=on can cause problems.' + .' See ' + .'security information about register_globals.'; + do_err($rg_error); +} + /* checking paths */ echo "Checking paths...
\n"; -- 2.25.1