From 433d220fa17acc76c512fc6c877629f71c1b7e42 Mon Sep 17 00:00:00 2001 From: uwetews Date: Mon, 29 Oct 2018 23:32:22 +0100 Subject: [PATCH] - bugfix Smarty::$php_handling == PHP_PASSTHRU (default) did eat the "\n" (newline) character if it did directly followed a PHP tag like "?>" or other https://github.com/smarty-php/smarty/issues/501 --- change_log.txt | 6 +++++- libs/Smarty.class.php | 2 +- libs/sysplugins/smarty_internal_compile_private_php.php | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/change_log.txt b/change_log.txt index c68dc2f9..e3f53ff6 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,8 @@ -===== 3.1.34-dev-5 ===== +===== 3.1.34-dev-6 ===== +29.10.2018 + - bugfix Smarty::$php_handling == PHP_PASSTHRU (default) did eat the "\n" (newline) character if it did directly followed + a PHP tag like "?>" or other https://github.com/smarty-php/smarty/issues/501 + 14.10.2018 - bugfix autoloader exit shortcut https://github.com/smarty-php/smarty/issues/467 diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 0112ebdc..f0757284 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -112,7 +112,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.34-dev-5'; + const SMARTY_VERSION = '3.1.34-dev-6'; /** * define variable scopes */ diff --git a/libs/sysplugins/smarty_internal_compile_private_php.php b/libs/sysplugins/smarty_internal_compile_private_php.php index a3cf0a27..ff48c6fb 100644 --- a/libs/sysplugins/smarty_internal_compile_private_php.php +++ b/libs/sysplugins/smarty_internal_compile_private_php.php @@ -47,7 +47,7 @@ class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase new Smarty_Internal_ParseTree_Tag( $compiler->parser, $compiler->processNocacheCode( - "", + "\n", true ) ) @@ -77,7 +77,7 @@ class Smarty_Internal_Compile_Private_Php extends Smarty_Internal_CompileBase new Smarty_Internal_ParseTree_Tag( $compiler->parser, $compiler->processNocacheCode( - "", + "\n", true ) )