[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-cvs
Subject:    [SMARTY-CVS] cvs: smarty /libs Smarty_Compiler.class.php
From:       "Messju Mohr" <messju () php ! net>
Date:       2003-07-28 20:36:55
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic