note 77602 added to security.globals
| From: | MikeWillbanks at osu1 dot php dot net | Date: | Wed, 05 Sep 2007 15:40:05 +0000 |
| Subject: | note 77602 added to security.globals | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130210@lists.php.net to get a copy of this message | ||
Sorry the last php code I submitted was formatted nice but I changed some things for readability and
didn't implement it across the board. Here is the correct code:
<?php
if (ini_get(register_globals)) {
$rg = array_keys($_REQUEST);
foreach($rg as $var)
{
if ($_REQUEST[$var] === $$var)
{
unset($$var);
}
}
}
?>
----
Server IP: 209.41.74.194
Probable Submitter: 209.87.176.132
----
Manual Page -- http://www.php.net/manual/en/security.globals.php
Edit -- https://master.php.net/note/edit/77602
Del: integrated -- https://master.php.net/note/delete/77602/integrated
Del: useless -- https://master.php.net/note/delete/77602/useless
Del: bad code -- https://master.php.net/note/delete/77602/bad+code
Del: spam -- https://master.php.net/note/delete/77602/spam
Del: non-english -- https://master.php.net/note/delete/77602/non-english
Del: in docs -- https://master.php.net/note/delete/77602/in+docs
Del: other reasons-- https://master.php.net/note/delete/77602
Reject -- https://master.php.net/note/reject/77602
Search -- https://master.php.net/manage/user-notes.php