From a682532f8b9f59915362d2fb24bc15596ea1cbef Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 27 Sep 2018 17:26:44 -0400 Subject: php: h template: coerce to string --- php/src/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'php/src/Template.php') diff --git a/php/src/Template.php b/php/src/Template.php index 8dcf944..a3522f7 100644 --- a/php/src/Template.php +++ b/php/src/Template.php @@ -526,7 +526,7 @@ class Filters { self::$FILTERS = [ 'h' => function($v) { - return htmlspecialchars($v, ENT_QUOTES); + return htmlspecialchars((string) $v, ENT_QUOTES); }, 'u' => function($v) { -- cgit v1.2.3