cvs: smarty /libs/core core.display_debug_console.php

"Monte Ohrt" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmohrt1080661887@cvsserver>
mohrt		Tue Mar 30 10:51:27 2004 EDT

  Modified files:              
    /smarty/libs/core	core.display_debug_console.php 
  Log:
  fix problem with debug_tpl path and security
  
  
http://cvs.php.net/diff.php/smarty/libs/core/core.display_debug_console.php?r1=1.9&r2=1.10&ty=u
Index: smarty/libs/core/core.display_debug_console.php
diff -u smarty/libs/core/core.display_debug_console.php:1.9 smarty/libs/core/core.display_debug_console.php:1.10
--- smarty/libs/core/core.display_debug_console.php:1.9	Tue Mar 30 09:36:56 2004
+++ smarty/libs/core/core.display_debug_console.php	Tue Mar 30 10:51:27 2004
@@ -21,10 +21,11 @@
 
     if(empty($smarty->debug_tpl)) {
         // set path to debug template from SMARTY_DIR
-        $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl';
+        $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl';
         if($smarty->security && is_file($smarty->debug_tpl)) {
             $smarty->secure_dir[] = dirname(realpath($smarty->debug_tpl));
         }
+        $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl';
     }
 
     $_ldelim_orig = $smarty->left_delimiter;

-- 
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.