diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 1e51272c..e8f725df 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -357,7 +357,7 @@ class Smarty_Compiler extends Smarty { // put header at the top of the compiled template $template_header = "_version.", created on ".strftime("%Y-%m-%d %H:%M:%S")."\n"; - $template_header .= " compiled from ".$resource_name." */ ?>\n"; + $template_header .= " compiled from ".strtr(urlencode($resource_name), array('%2F'=>'/', '%3A'=>':'))." */ ?>\n"; /* Emit code to load needed plugins. */ $this->_plugins_code = '';