|
|||||||||||
|
Re: PHP and "Register_Globals"
From: Adrian <adrian(at)planetcoding.net>
Date: Sat Mar 29 2003 - 13:32:40 EST You should put the following code in your scripts: if(isset($_REQUEST['varname'])) $varname=$_REQUEST['varname']; else $varname='defalut_value'; But so this only for variables which may be a user input! Then your program is "register_globals off"-compatible and safe. > hello, > newer php-versions have set "register_globals" to "off" by default. i
> I soon realized the security issues, and wrote my own
> my question is now: my app is 'safe', but what do I do if my future
> would it be possible to write a script that registers the whole
> regards,
> Ulrich
-- Adrian mailto:adrian@planetcoding.net mailto:thiefmaster@woltlab.de www: http://www.planetcoding.net www: http://webskyline.planetcoding.netReceived on Sat Mar 29 13:36:11 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:49 EDT |
||||||||||
|
|||||||||||