From 31b57a92bbb0d88923442dc3e6c4bea64e157786 Mon Sep 17 00:00:00 2001 From: scyrma Date: Thu, 13 Mar 2008 08:38:37 +0000 Subject: [PATCH] Fixed a bug introduced somewhere down the late modifications.. --- lib/moodlelib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5