From c4ea5e78019ad287430fa8e6b00ae31bc1fd181b Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 16 Oct 2006 07:46:35 +0000 Subject: [PATCH] PARAM_MULTILANG is now alias of PARAM_TEXT; merged from MOODLE_17_STABLE --- lib/moodlelib.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 00072d7a8e..283483ebbc 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -138,10 +138,15 @@ define('PARAM_FORMAT', 0x0004); define('PARAM_NOTAGS', 0x0008); /** - * PARAM_MULTILANG - general plain text compatible with multilang filter, no other html tags. + * PARAM_MULTILANG - alias of PARAM_TEXT. */ define('PARAM_MULTILANG', 0x0009); + /** + * PARAM_TEXT - general plain text compatible with multilang filter, no other html tags. + */ +define('PARAM_TEXT', 0x0009); + /** * PARAM_FILE - safe file name, all dangerous chars are stripped, protects against XSS, SQL injections and directory traversals */ @@ -384,7 +389,7 @@ function clean_param($param, $type) { case PARAM_NOTAGS: // Strip all tags return strip_tags($param); - case PARAM_MULTILANG: // leave only tags needed for multilang + case PARAM_TEXT: // leave only tags needed for multilang return clean_param(strip_tags($param, ''), PARAM_CLEAN); case PARAM_SAFEDIR: // Remove everything not a-zA-Z0-9_- -- 2.39.5