- improvement make sure that compiled and cache templates never can contain a trailing '?>?

This commit is contained in:
uwetews
2015-12-19 21:37:46 +01:00
parent d11956fc78
commit 9cdf68807f
2 changed files with 2 additions and 1 deletions

View File

@@ -89,6 +89,6 @@ class Smarty_Internal_Runtime_CodeFrame
$output .= $functions;
$output .= "<?php }\n";
// 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);
}
}