[phpslash-users] clean and dirty functions...
Brought to you by:
joestewart,
nhruby
From: Ajay S. <ss...@od...> - 2000-09-17 19:45:31
|
Hey, There's a bug report talking about all the add/strip slashes that we're missing so I created the clean/dirty functions. This is what the clean line looks like: $clean = addslashes(str_replace('\"',""",stripslashes($dirty))); Is that cool? I stripslashes first in case there's any extra slashes around, then I replace the " with ", then I addslashes to take care of all the apostrophies '. Is that going to be general enough for everything? Should the dirty one *just* do a strip slashes? later, ajay ---------------------------------------------------------------- Satyajot (Ajay) Sharma ss...@od... Digital Odyssey System Administrator "You will find true love, or a missing sock" -- Bazooka Joe ---------------------------------------------------------------- |