Author: allyb
Date: 2010-02-03 13:23:51 +0100 (Wed, 03 Feb 2010)
New Revision: 27486
Modified:
plugins/sfMinifyTSPlugin/trunk/lib/filter/sfMinifyTSFilter.class.php
Log:
Fixed a bug for when conditional css tags occur before and after normal css
references
Modified: plugins/sfMinifyTSPlugin/trunk/lib/filter/sfMinifyTSFilter.class.php
===================================================================
--- plugins/sfMinifyTSPlugin/trunk/lib/filter/sfMinifyTSFilter.class.php
2010-02-03 12:20:03 UTC (rev 27485)
+++ plugins/sfMinifyTSPlugin/trunk/lib/filter/sfMinifyTSFilter.class.php
2010-02-03 12:23:51 UTC (rev 27486)
@@ -92,9 +92,9 @@
// Before searching for stylesheets, strip out links to stylesheets in
// IE conditional comments
- if (preg_match('/<!--\[if.*endif\]-->/sim', $response->getContent()))
+ if (preg_match('/<!--\[if.*?endif\]-->/sim', $response->getContent()))
{
- $content = preg_replace('/<!--\[if.*endif\]-->/sim', '',
$response->getContent());
+ $content = preg_replace('/<!--\[if.*?endif\]-->/sim', '',
$response->getContent());
}
else
{
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.