Skip to content

Commit

Permalink
- bugfix Smarty::$php_handling == PHP_PASSTHRU (default) did eat the …
Browse files Browse the repository at this point in the history
…"\n" (newline) character if it did directly followed

   a PHP tag like "?>" or other #501
  • Loading branch information
uwetews committed Oct 29, 2018
1 parent 3626e37 commit 433d220
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion change_log.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 2 additions & 2 deletions libs/sysplugins/smarty_internal_compile_private_php.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $
new Smarty_Internal_ParseTree_Tag(
$compiler->parser,
$compiler->processNocacheCode(
"<?php echo '{$output}';?>",
"<?php echo '{$output}';?>\n",
true
)
)
Expand Down Expand Up @@ -77,7 +77,7 @@ public function compile($args, Smarty_Internal_TemplateCompilerBase $compiler, $
new Smarty_Internal_ParseTree_Tag(
$compiler->parser,
$compiler->processNocacheCode(
"<?php echo '{$output}';?>",
"<?php echo '{$output}';?>\n",
true
)
)
Expand Down

0 comments on commit 433d220

Please sign in to comment.