summaryrefslogtreecommitdiffstats
path: root/lib/SqlFormatter.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/SqlFormatter.php')
-rw-r--r--lib/SqlFormatter.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/SqlFormatter.php b/lib/SqlFormatter.php
index 99f0d56..f6556c9 100644
--- a/lib/SqlFormatter.php
+++ b/lib/SqlFormatter.php
@@ -864,7 +864,11 @@ class SqlFormatter
if (self::is_cli()) {
$token = $token[self::TOKEN_VALUE];
} else {
- $token = @htmlentities($token[self::TOKEN_VALUE],ENT_COMPAT,'UTF-8');
+ if (defined('ENT_IGNORE')) {
+ $token = htmlentities($token[self::TOKEN_VALUE],ENT_COMPAT | ENT_IGNORE ,'UTF-8');
+ } else {
+ $token = htmlentities($token[self::TOKEN_VALUE],ENT_COMPAT,'UTF-8');
+ }
}
if ($type===self::TOKEN_TYPE_BOUNDARY) {