diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2014-04-11 20:44:39 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2014-04-11 20:44:39 +0200 |
commit | 266325eac451fc92d4d390d1f9b97362c317445a (patch) | |
tree | 02a939f5795e226e3833802aff2852f157379681 | |
parent | e704bc2bf01e8db49634bd1ec9b9dbd11afc246d (diff) | |
parent | 77ecfdd1a42811a1239b29c18b21768d2a5a3ae0 (diff) | |
download | nextcloud-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-x | lib/private/util.php | 2 |
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; } |