mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-21400 fixed borked yui CSS when image contained "_"
This commit is contained in:
parent
dcd6229201
commit
35eafad0ec
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user