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
*/
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_-