From 90984a0464b99859244d6954aea08bc3508dcf5c Mon Sep 17 00:00:00 2001 From: pine3ree Date: Tue, 13 Jun 2023 02:00:05 +0200 Subject: [PATCH] ENT_SUBSTITUTE is defined since php 5.4 --- src/Template/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Template/Template.php b/src/Template/Template.php index db11a9f..5001974 100644 --- a/src/Template/Template.php +++ b/src/Template/Template.php @@ -361,7 +361,7 @@ public function escape($string, $functions = null) static $flags; if (!isset($flags)) { - $flags = ENT_QUOTES | (defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0); + $flags = ENT_QUOTES | ENT_SUBSTITUTE; } if ($functions) {