mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- improvement make sure that compiled and cache templates never can contain a trailing '?>?
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
- bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138
|
- bugfix using $smarty.capture.foo in expressions could fail https://github.com/smarty-php/smarty/pull/138
|
||||||
- bugfix broken PHP 5.2 compatibility
|
- bugfix broken PHP 5.2 compatibility
|
||||||
- remove no longer used code
|
- remove no longer used code
|
||||||
|
- improvement make sure that compiled and cache templates never can contain a trailing '?>?
|
||||||
|
|
||||||
18.12.2015
|
18.12.2015
|
||||||
- bugfix regression when modifier parameter was follow by math https://github.com/smarty-php/smarty/issues/132
|
- bugfix regression when modifier parameter was follow by math https://github.com/smarty-php/smarty/issues/132
|
||||||
|
@@ -89,6 +89,6 @@ class Smarty_Internal_Runtime_CodeFrame
|
|||||||
$output .= $functions;
|
$output .= $functions;
|
||||||
$output .= "<?php }\n";
|
$output .= "<?php }\n";
|
||||||
// remove unneeded PHP tags
|
// remove unneeded PHP tags
|
||||||
return preg_replace('/\s*\?>[\n]?<\?php\s*/', "\n", $output);
|
return preg_replace(array('/\s*\?>[\n]?<\?php\s*/', '/\?>\s*$/'), array("\n", ''), $output);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user