|
@@ -33,15 +33,12 @@ if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
|
|
$_SESSION =& $HTTP_SESSION_VARS;
|
|
$_SESSION =& $HTTP_SESSION_VARS;
|
|
}
|
|
}
|
|
|
|
|
|
-/* if running with register_globals = 0 and
|
|
|
|
- magic_quotes_gpc then strip the slashes
|
|
|
|
|
|
+/* if running with magic_quotes_gpc then strip the slashes
|
|
from POST and GET global arrays */
|
|
from POST and GET global arrays */
|
|
|
|
|
|
if (get_magic_quotes_gpc()) {
|
|
if (get_magic_quotes_gpc()) {
|
|
- if (ini_get('register_globals') == 0) {
|
|
|
|
- sqstripslashes($_GET);
|
|
|
|
- sqstripslashes($_POST);
|
|
|
|
- }
|
|
|
|
|
|
+ sqstripslashes($_GET);
|
|
|
|
+ sqstripslashes($_POST);
|
|
}
|
|
}
|
|
|
|
|
|
/* strip any tags added to the url from PHP_SELF.
|
|
/* strip any tags added to the url from PHP_SELF.
|