Use sanitizeHTML instead of stripslashes + htmlspecialchars
This commit is contained in:
parent
1c56539c01
commit
1b10032556
|
@ -437,7 +437,7 @@ class OC_Helper {
|
|||
public static function init_var($s, $d="") {
|
||||
$r = $d;
|
||||
if(isset($_REQUEST[$s]) && !empty($_REQUEST[$s]))
|
||||
$r = stripslashes(htmlspecialchars($_REQUEST[$s]));
|
||||
$r = OC_Util::sanitizeHTML($_REQUEST[$s]);
|
||||
|
||||
return $r;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue