note 43037 deleted from security.globals by philip
| From: | philip@php.net | Date: | Wed, 14 Jul 2004 18:38:16 +0000 |
| Subject: | note 43037 deleted from security.globals by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73231@lists.php.net to get a copy of this message | ||
Note Submitter: richard@NOSPAM.mf2fm.co.uk
----
If you were previously used to having register_globals on but have now disabled it for security
reasons, there is a very simple piece of code which will have the effect of turning them back on
again:
<?php
foreach (array_keys($_GET) as $key) $$key=$_GET[$key];
?>
Add another line for $_POST and $_COOKIE and so on and voila!