summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-04-11 20:44:39 +0200
committerLukas Reschke <lukas@statuscode.ch>2014-04-11 20:44:39 +0200
commit266325eac451fc92d4d390d1f9b97362c317445a (patch)
tree02a939f5795e226e3833802aff2852f157379681
parente704bc2bf01e8db49634bd1ec9b9dbd11afc246d (diff)
parent77ecfdd1a42811a1239b29c18b21768d2a5a3ae0 (diff)
downloadnextcloud-server-266325eac451fc92d4d390d1f9b97362c317445a.tar.gz
nextcloud-server-266325eac451fc92d4d390d1f9b97362c317445a.zip
Merge pull request #8168 from owncloud/only-encode-dangerous-char
Only encode dangerous dangerous characters
-rwxr-xr-xlib/private/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 731b7c97503..a744644b39c 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -805,7 +805,7 @@ class OC_Util {
array_walk_recursive($value, 'OC_Util::sanitizeHTML');
} else {
//Specify encoding for PHP<5.4
- $value = htmlentities((string)$value, ENT_QUOTES, 'UTF-8');
+ $value = htmlspecialchars((string)$value, ENT_QUOTES, 'UTF-8');
}
return $value;
}