PARAM_MULTILANG is now alias of PARAM_TEXT; merged from MOODLE_17_STABLE
This commit is contained in:
+7
-2
@@ -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, '<lang><span>'), PARAM_CLEAN);
|
||||
|
||||
case PARAM_SAFEDIR: // Remove everything not a-zA-Z0-9_-
|
||||
|
||||
Reference in New Issue
Block a user