2009-06-06

Nice Anti Register Globals Code

Found in Textpattern:

if (@ini_get('register_globals'))
foreach ( $_REQUEST as $name => $value )
unset($$name);

Labels: ,

1 Comments:

Anonymous ab said...

pmwiki has:
$$name = null; unset($$name);
because of some bug in PHP.

June 6, 2009 6:17 PM  

Post a Comment

<< Home