[Solar-svn] Revision 3275

pmjones at solarphp.com pmjones at solarphp.com
Wed Jul 30 07:39:25 CDT 2008


Solar_Php: [FIX] Trim leading and trailing spaces on PHP code so as not to mess up tag removal logic.


Modified: trunk/Solar/Php.php
===================================================================
--- trunk/Solar/Php.php	2008-07-30 12:33:47 UTC (rev 3274)
+++ trunk/Solar/Php.php	2008-07-30 12:39:25 UTC (rev 3275)
@@ -436,6 +436,10 @@
     
     protected function _buildCode($code)
     {
+        // trim leading and trailing space so as not to mess up the removal of
+        // opening and closing tags.
+        $code = trim($code);
+        
         // strip long opening tag
         if (substr($code, 0, 5) == '<?php') {
             $code = substr($code, 5);




More information about the Solar-svn mailing list