From 9bbb758bf05a9cfaa04dc82ae1465cde6cf54d33 Mon Sep 17 00:00:00 2001 From: Isaac Flores Date: Mon, 11 May 2009 17:28:21 +0200 Subject: [PATCH] [svn r20485] minor - logic changes -changed default value, of user status -(partial FS#4169) --- main/inc/lib/security.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/inc/lib/security.lib.php b/main/inc/lib/security.lib.php index e48dc3f16b..13b7ff3c65 100755 --- a/main/inc/lib/security.lib.php +++ b/main/inc/lib/security.lib.php @@ -245,9 +245,10 @@ class Security{ * Filtering for XSS is very easily done by using the htmlentities() function. * This kind of filtering prevents JavaScript snippets to be understood as such. * @param mixed The variable to filter for XSS, this params can be a string or an array (example : array(x,y)) + * @param integer The user status,constant allowed(STUDENT,COURSEMANAGER,ANONYMOUS) * @return mixed Filtered string or array */ - function remove_XSS($var,$user_status=null) { + function remove_XSS($var,$user_status=ANONYMOUS) { global $charset; /*if (is_null($user_status)) { if (is_array($var)) {