Note Submitter: VBAssassin (Scott Thompson)
----
in response to:
====================================
This code can be inserted somewhere in your application
(near the start):
if (get_magic_quotes_gpc()) {
// Yes? Strip the added slashes
$_REQUEST = array_map('stripslashes', $_REQUEST);
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
}
====================================
That code will fail if someone sets a control to an array
for example:
<input type='checkbox' name='id_numbers[]' />
Just thought i'd let ya know...
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|