From: scyrma Date: Thu, 13 Mar 2008 08:38:37 +0000 (+0000) Subject: Fixed a bug introduced somewhere down the late modifications.. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=31b57a92bbb0d88923442dc3e6c4bea64e157786;p=moodle.git Fixed a bug introduced somewhere down the late modifications.. --- diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 8ffddb5a7a..d9fb6a0a38 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -569,7 +569,7 @@ function clean_param($param, $type) { $param = preg_replace('/\s+/', ' ', $param); $textlib = textlib_get_instance(); $param = $textlib->substr(trim($param), 0, TAG_MAX_LENGTH); - return $param; + return addslashes($param); case PARAM_TAGLIST: