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

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1076453929@cvsserver>
messju		Tue Feb 10 17:58:49 2004 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs	Config_File.class.php 
  Log:
  fixed slurping of a the next line following a triple-quoted value in a
  config-file
  
  
  
http://cvs.php.net/diff.php/smarty/NEWS?r1=1.433&r2=1.434&ty=u
Index: smarty/NEWS
diff -u smarty/NEWS:1.433 smarty/NEWS:1.434
--- smarty/NEWS:1.433	Sat Feb  7 15:29:20 2004
+++ smarty/NEWS	Tue Feb 10 17:58:48 2004
@@ -1,3 +1,5 @@
+  - fix accidently slurped line following a triple-quoted value in a
+    config-file (messju)
   - change default for use_sub_dirs to false (messju)
   - fix quoting of values in smarty_function_popup() (messju)
   - fix handling of hidden sections in Config_File (messju)
http://cvs.php.net/diff.php/smarty/libs/Config_File.class.php?r1=1.65&r2=1.66&ty=u
Index: smarty/libs/Config_File.class.php
diff -u smarty/libs/Config_File.class.php:1.65 smarty/libs/Config_File.class.php:1.66
--- smarty/libs/Config_File.class.php:1.65	Sat Feb  7 16:15:29 2004
+++ smarty/libs/Config_File.class.php	Tue Feb 10 17:58:49 2004
@@ -31,7 +31,7 @@
  * @package Smarty
  */
 
-/* $Id: Config_File.class.php,v 1.65 2004/02/07 21:15:29 messju Exp $ */
+/* $Id: Config_File.class.php,v 1.66 2004/02/10 22:58:49 messju Exp $ */
 
 /**
  * Config file reading class
@@ -324,7 +324,7 @@
                             $var_value .= $lines[$i++];
                         } else {
                             /* end of multiline-value */
-                            $var_value .= substr($lines[$i++], 0, $pos);
+                            $var_value .= substr($lines[$i], 0, $pos);
                             break;
                         }
                     }

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