From: gustav_delius Date: Mon, 27 Dec 2004 23:40:42 +0000 (+0000) Subject: Reinstated the line in stripslashes_safe() that removes the slash that escapes a... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b403c32aa0ba6d4d07ea1dbc94f8a69aee6e6e08;p=moodle.git Reinstated the line in stripslashes_safe() that removes the slash that escapes a backslash. Martin removed this line in March. Why? --- diff --git a/lib/weblib.php b/lib/weblib.php index d20a0862ef..f281860986 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -313,7 +313,7 @@ function stripslashes_safe($string) { $string = str_replace("\\'", "'", $string); $string = str_replace('\\"', '"', $string); - //$string = str_replace('\\\\', '\\', $string); // why? + $string = str_replace('\\\\', '\\', $string); return $string; }