diff --git a/reference/strings/functions/addslashes.xml b/reference/strings/functions/addslashes.xml index 4b7b2a025..887006825 100644 --- a/reference/strings/functions/addslashes.xml +++ b/reference/strings/functions/addslashes.xml @@ -1,7 +1,7 @@ - + - + addslashes Esegue il quoting di una stringa con gli slash @@ -11,7 +11,7 @@ &reftitle.description; stringaddslashes - stringstr + stringstring La funzione restituisce una stringa con il carattere backslash anteposto ai caratteri @@ -37,15 +37,6 @@ eval("echo '" . addslashes($str) . "';"); - - Prima di PHP 5.4.0, la direttiva PHP magic_quotes_gpc - era on per impostazione predefinita ed essenzialmente eseguiva addslashes - su tutti i dati GET, POST e COOKIE. - addslashes non deve essere usato su stringhe su cui è già stato - effettuato l'escape con magic_quotes_gpc, - poiché sulle stringhe verrebbe fatto un doppio escape. get_magic_quotes_gpc può essere usata per controllare - se magic_quotes_gpc è on. - A volte addslashes è erroneamente utilizzato per provare a prevenire SQL Injection. Invece, @@ -58,7 +49,7 @@ eval("echo '" . addslashes($str) . "';"); - str + string La stringa su cui fare l'escape. @@ -108,7 +99,6 @@ echo addslashes($str); -