php - using stripslashes() discriminately -
Strips lash
does not remove the slash indiscriminately.
If the magic quote is on, it will be saved from slash, '\'
will replace with '\\'
, and strip slashes
must be reversed by running magic quotes in the right way, to withdraw the user on which the entered '\\'
should replace '\'
.
I think you might want something like this:
At the end of the code, there should be no slash except the user $ last name
.
On another note, magic quotes are a security problem, and have been demoted in new versions of PHP (see).
Comments
Post a Comment