cvs: smarty / NEWS /libs Config_File.class.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1076585331@cvsserver>
messju		Thu Feb 12 06:28:51 2004 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs	Config_File.class.php 
  Log:
  YES and NO should not be booleanized inside triple-quotes in a
  config-file. this behaviour changed by accident in 2.6.1 and is now
  reverted to pre-2.6.1 behaviour
  
  
  
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.434&r2=1.435&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.434 smarty/NEWS:1.435
--- smarty/NEWS:1.434	Tue Feb 10 17:58:48 2004
+++ smarty/NEWS	Thu Feb 12 06:28:49 2004
@@ -1,3 +1,5 @@
+  - fix YES and NO should not be booleanized inside triple-quotes in a
+    config-file (messju)
   - fix accidently slurped line following a triple-quoted value in a
     config-file (messju)
   - change default for use_sub_dirs to false (messju)
http://cvs.php.net/diff.php/smarty/libs/Config_File.class.php?r1=1.66&r2=1.67&ty=u
Index: smarty/libs/Config_File.class.php
diff -u smarty/libs/Config_File.class.php:1.66 smarty/libs/Config_File.class.php:1.67
--- smarty/libs/Config_File.class.php:1.66	Tue Feb 10 17:58:49 2004
+++ smarty/libs/Config_File.class.php	Thu Feb 12 06:28:50 2004
@@ -31,7 +31,7 @@
  * @package Smarty
  */
 
-/* $Id: Config_File.class.php,v 1.66 2004/02/10 22:58:49 messju Exp $ */
+/* $Id: Config_File.class.php,v 1.67 2004/02/12 11:28:50 messju Exp $ */
 
 /**
  * Config file reading class
@@ -328,13 +328,15 @@
                             break;
                         }
                     }
+                    $booleanize = false;
 
                 } else {
                     /* handle simple value */
                     $var_value = preg_replace('/^([\'"])(.*)\1$/', '\2', rtrim($match[2]));
+                    $booleanize = $this->booleanize;
 
                 }
-                $this->_set_config_var($vars, $var_name, $var_value, $this->booleanize);
+                $this->_set_config_var($vars, $var_name, $var_value, $booleanize);
             }
             /* else unparsable line / means it is a comment / means ignore it */
         }



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