From 1ad498d6fe9a0461718013d5f4ea60922a7f3470 Mon Sep 17 00:00:00 2001 From: Bram Mittendorff Date: Mon, 26 Jun 2017 22:46:47 +0200 Subject: [PATCH 1/2] Update SaxXmlParser.php - Fixed false positive ClamAV bug in the SaxXmlParser --- classes/PHPTAL/Dom/SaxXmlParser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/PHPTAL/Dom/SaxXmlParser.php b/classes/PHPTAL/Dom/SaxXmlParser.php index b59a26d6..5d06b278 100644 --- a/classes/PHPTAL/Dom/SaxXmlParser.php +++ b/classes/PHPTAL/Dom/SaxXmlParser.php @@ -424,7 +424,8 @@ private function checkEncoding($str) */ private static function convertBytesToEntities(array $m) { - $m = $m[1]; $out = ''; + $m = $m[1]; + $out = ""; for($i=0; $i < strlen($m); $i++) { $out .= '&#X'.strtoupper(dechex(ord($m[$i]))).';'; From fb789b70b7731b58689b0e7bb63da6eff6ae09dc Mon Sep 17 00:00:00 2001 From: Ben Peachey Date: Sat, 15 Jul 2017 19:28:30 +0000 Subject: [PATCH 2/2] Version bump --- classes/PHPTAL.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/PHPTAL.php b/classes/PHPTAL.php index 1e3a846f..d8959cb7 100644 --- a/classes/PHPTAL.php +++ b/classes/PHPTAL.php @@ -13,7 +13,7 @@ * @link http://phptal.org/ */ -define('PHPTAL_VERSION', '1_3_0'); +define('PHPTAL_VERSION', '1_3_1'); PHPTAL::autoloadRegister(); diff --git a/composer.json b/composer.json index b5ebd51e..b7753c94 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "phptal/phptal", "homepage": "http://phptal.org/", "description": "PHPTAL is a templating engine for PHP5 that implements Zope Page Templates syntax", - "version":"1.3.0", + "version":"1.3.1", "license": "LGPL-2.1+", "type": "library", "keywords": [