mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Use sanitizeHTML instead of stripslashes + htmlspecialchars
This commit is contained in:
parent
1c56539c01
commit
1b10032556
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue