cvs: smarty /libs Smarty_Compiler.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1059424615@cvsserver>
messju		Mon Jul 28 16:36:55 2003 EDT

  Modified files:              
    /smarty/libs	Smarty_Compiler.class.php 
  Log:
  quote smarty-header properly to prevent resource-names from escaping from the comment
  
  
  
Index: smarty/libs/Smarty_Compiler.class.php
diff -u smarty/libs/Smarty_Compiler.class.php:1.264 smarty/libs/Smarty_Compiler.class.php:1.265
--- smarty/libs/Smarty_Compiler.class.php:1.264	Thu Jul  3 11:45:29 2003
+++ smarty/libs/Smarty_Compiler.class.php	Mon Jul 28 16:36:55 2003
@@ -39,7 +39,7 @@
  * @package Smarty
  */
 
-/* $Id: Smarty_Compiler.class.php,v 1.264 2003/07/03 15:45:29 messju Exp $ */
+/* $Id: Smarty_Compiler.class.php,v 1.265 2003/07/28 20:36:55 messju Exp $ */
 
 /**
  * Template compiling class
@@ -357,7 +357,7 @@
 
         // put header at the top of the compiled template
         $template_header = "<?php /* Smarty version ".$this->_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 = '';



-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.