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/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]))).';'; 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": [