diff options
Diffstat (limited to 'core/DataTable/Filter/SafeDecodeLabel.php')
-rw-r--r-- | core/DataTable/Filter/SafeDecodeLabel.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/DataTable/Filter/SafeDecodeLabel.php b/core/DataTable/Filter/SafeDecodeLabel.php index 3a0f222b04..a535b0164b 100644 --- a/core/DataTable/Filter/SafeDecodeLabel.php +++ b/core/DataTable/Filter/SafeDecodeLabel.php @@ -45,7 +45,7 @@ class SafeDecodeLabel extends Filter $raw = urldecode($value); $value = htmlspecialchars_decode($raw, ENT_QUOTES); if (self::$outputHtml) { - // ENT_IGNORE is not good! + // ENT_IGNORE so that if utf8 string has some errors, we simply discard invalid code unit sequences $style = ENT_QUOTES | ENT_IGNORE; // See changes in 5.4: http://nikic.github.com/2012/01/28/htmlspecialchars-improvements-in-PHP-5-4.html // Note: at some point we should change ENT_IGNORE to ENT_SUBSTITUTE |