summaryrefslogtreecommitdiff
path: root/app/Filter.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Filter.php')
-rw-r--r--app/Filter.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/Filter.php b/app/Filter.php
index b4491cf7a8..152a7b3627 100644
--- a/app/Filter.php
+++ b/app/Filter.php
@@ -38,12 +38,7 @@ class Filter {
* @return string
*/
public static function escapeHtml($string) {
- if (defined('ENT_SUBSTITUTE')) {
- // PHP5.4 allows us to substitute invalid UTF8 sequences
- return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
- } else {
- return htmlspecialchars($string, ENT_QUOTES, 'UTF-8');
- }
+ return htmlspecialchars($string, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
}
/**