]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a bug introduced somewhere down the late modifications..
authorscyrma <scyrma>
Thu, 13 Mar 2008 08:38:37 +0000 (08:38 +0000)
committerscyrma <scyrma>
Thu, 13 Mar 2008 08:38:37 +0000 (08:38 +0000)
lib/moodlelib.php

index 8ffddb5a7ac0a92469575bbc951a51c37313b386..d9fb6a0a38271b3ae2936db6f0e76783b75cc47a 100644 (file)
@@ -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: