Merge pull request #8168 from owncloud/only-encode-dangerous-char

Only encode dangerous dangerous characters
This commit is contained in:
Lukas Reschke 2014-04-11 20:44:39 +02:00
commit 266325eac4

View file

@ -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;
}