note 30574 deleted from function.stripslashes by aidan

From: Date: Sun, 29 Aug 2004 10:23:24 +0000
Subject: note 30574 deleted from function.stripslashes by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75535@lists.php.net to get a copy of this message
Note Submitter: Mark (blinker at hot dot ee) www dot dhpon dot net/del/ ---- It seems that this works better: $string = str_replace("\\", "\", $string); than this: $string = stripslashes($string); I have tested it with strings like: \, \\, \\\, \', \", \t, ', " And everything works fine! The code above works if: magic_quotes_gpc off

« previous php.notes (#75535) next »