mmm non direi proprioOriginariamente inviato da Samleo
O disattivi il magic_quotes, o togli il mysql_real_escape_string
Uno ci basta...
http://www.tizag.com/phpT/php-magic-quotes.php
http://stackoverflow.com/questions/1...tes-at-runtime
e se proprio vuoi esagerare
se il server te lo permette puoi disattivarleCodice PHP:
// (C) Andrea Giammarchi - Mit Style License
class App_RemoveMagicQuotes
{
private $__f = array();
final public function __construct() {
if(get_magic_quotes_gpc()) {
$this->__f = array($this, '__rs');
$_GET = array_map($this->__f, $_GET);
$_POST = array_map($this->__f, $_POST);
$_REQUEST = array_map($this->__f, $_REQUEST);
$_COOKIE = array_map($this->__f, $_COOKIE);
}
}
final private function __rs($w) {
return is_array($w) ? array_map($this->__f, $w) : stripslashes($w);
}
}
in un .htaccess
php_flag magic_quotes_gpc off
![]()