summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helper.php b/lib/helper.php
index a0fbdd10394..124ab9da96b 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -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;
}