note 73462 deleted from function.get-magic-quotes-gpc by colder

From: Date: Sat, 24 Feb 2007 09:57:54 +0000
Subject: note 73462 deleted from function.get-magic-quotes-gpc by colder
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-123803@lists.php.net to get a copy of this message
Note Submitter: ateicos.at.ateicos.dot.com Reason: bad code ---- _GET and _POST could be created, overwritten or deleted. This method simply overwrite original values. <?php if ( !get_magic_quotes_gpc() ) { while( list( $a, $b ) = each( $_GET ) ) { $_GET[ $a ] = addslashes( $_GET[ $a ] ); } while( list( $a, $b ) = each( $_POST ) ) { $_POST[ $a ] = addslashes( $_POST[ $a ] ); } } ?>

« previous php.notes (#123803) next »