Merge pull request #8168 from owncloud/only-encode-dangerous-char
Only encode dangerous dangerous characters
This commit is contained in:
commit
266325eac4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue