cvs: pear /HTML_QuickForm/QuickForm/Renderer Default.php

From: Date: Fri, 05 Oct 2007 10:00:09 +0000
Subject: cvs: pear /HTML_QuickForm/QuickForm/Renderer Default.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-48754@lists.php.net to get a copy of this message
avb Fri Oct 5 10:00:09 2007 UTC Modified files: /pear/HTML_QuickForm/QuickForm/Renderer Default.php Log: Added the forgotten PCRE_DOTALL regexp modifier (bug #12026) http://cvs.php.net/viewvc.cgi/pear/HTML_QuickForm/QuickForm/Renderer/Default.php?r1=1.17&r2=1.18&diff_format=u Index: pear/HTML_QuickForm/QuickForm/Renderer/Default.php diff -u pear/HTML_QuickForm/QuickForm/Renderer/Default.php:1.17 pear/HTML_QuickForm/QuickForm/Renderer/Default.php:1.18 --- pear/HTML_QuickForm/QuickForm/Renderer/Default.php:1.17 Sun Jun 3 13:16:17 2007 +++ pear/HTML_QuickForm/QuickForm/Renderer/Default.php Fri Oct 5 10:00:09 2007 @@ -256,14 +256,14 @@ $html = str_replace('<!-- BEGIN required -->', '', $html); $html = str_replace('<!-- END required -->', '', $html); } else { - $html = preg_replace("/([ \t\n\r]*)?<!-- BEGIN required -->.*<!-- END required -->([ \t\n\r]*)?/iU", '', $html); + $html = preg_replace("/([ \t\n\r]*)?<!-- BEGIN required -->.*<!-- END required -->([ \t\n\r]*)?/isU", '', $html); } if (isset($error)) { $html = str_replace('{error}', $error, $html); $html = str_replace('<!-- BEGIN error -->', '', $html); $html = str_replace('<!-- END error -->', '', $html); } else { - $html = preg_replace("/([ \t\n\r]*)?<!-- BEGIN error -->.*<!-- END error -->([ \t\n\r]*)?/iU", '', $html); + $html = preg_replace("/([ \t\n\r]*)?<!-- BEGIN error -->.*<!-- END error -->([ \t\n\r]*)?/isU", '', $html); } if (is_array($label)) { foreach($label as $key => $text) { @@ -274,7 +274,7 @@ } } if (strpos($html, '{label_')) { - $html = preg_replace('/\s*<!-- BEGIN label_(\S+) -->.*<!-- END label_\1 -->\s*/i', '', $html); + $html = preg_replace('/\s*<!-- BEGIN label_(\S+) -->.*<!-- END label_\1 -->\s*/is', '', $html); } return $html; } // end func _prepareTemplate @@ -301,7 +301,7 @@ $html = str_replace('<!-- BEGIN required -->', '', $html); $html = str_replace('<!-- END required -->', '', $html); } else { - $html = preg_replace("/([ \t\n\r]*)?<!-- BEGIN required -->.*<!-- END required -->([ \t\n\r]*)?/iU", '', $html); + $html = preg_replace("/([ \t\n\r]*)?<!-- BEGIN required -->.*<!-- END required -->([ \t\n\r]*)?/isU", '', $html); } $this->_groupElements[] = str_replace('{element}', $element->toHtml(), $html);

« previous php.pear.cvs (#48754) next »