From 35eafad0ecfc409175a2f81e62373330b5cf72af Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 6 Feb 2010 19:41:20 +0000 Subject: [PATCH] MDL-21400 fixed borked yui CSS when image contained "_" --- theme/yui_combo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/yui_combo.php b/theme/yui_combo.php index 1502c393be4..5306c9c5be3 100644 --- a/theme/yui_combo.php +++ b/theme/yui_combo.php @@ -71,7 +71,7 @@ foreach ($parts as $part) { if ($mimetype === 'text/css') { // search for all images in yui2 CSS and serve them through the yui_image.php script - $filecontent = preg_replace('/([a-z-]+)\.(png|gif)/', 'yui_image.php?file='.$version.'/$1.$2', $filecontent); + $filecontent = preg_replace('/([a-z_-]+)\.(png|gif)/', 'yui_image.php?file='.$version.'/$1.$2', $filecontent); } $content .= $filecontent;