note 32525 added to security.registerglobals
| From: | martin at rack1 dot php dot net | Date: | Fri, 30 May 2003 07:32:15 +0000 |
| Subject: | note 32525 added to security.registerglobals | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49393@lists.php.net to get a copy of this message | ||
In regard to contributions about .htaccess config of register_globals.
If you need to work with a mix of "off" and "on" of register_globals during a
transistion period, you can do a test prior to execute any script, making old code work with a
heading script like this:
if (Test to pass during transition){
foreach($_GET as $var=>$value){
$variable=$var;
$$variable=$value;
}
foreach($_POST as $var=>$value){
$variable=$var;
$$variable=$value;
}
}
Beware that using this will not protect your old scripts, so use it only during a transitional
period!
----
Manual Page -- http://www.php.net/manual/en/security.registerglobals.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32525
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32525&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32525&report=yes