What steps will reproduce the problem?
1. Minify CSS containing an URL with 'preserve-urls' option
What is the expected output? What do you see instead?
Url is not preserved. Instead, it is encoded in bas64 twice.
What version of the product are you using? On what operating system?
r5
Please provide any additional information below.
Here is the bug:
<code>
if (in_array("preserve-urls", $options))
{
// Decode url()
$css = preg_replace_callback("/url\s*\((.*)\)/siU", "cssmin_encode_url", $css);
}
</code>
Should be:
<code>
if (in_array("preserve-urls", $options))
{
// Decode url()
$css = preg_replace_callback("/url\s*\((.*)\)/siU", "cssmin_decode_url", $css);
}
</code>
Otherwise nice work!
Original issue reported on code.google.com by hong...@gmail.com on 16 Jul 2010 at 10:49
Original issue reported on code.google.com by
hong...@gmail.com
on 16 Jul 2010 at 10:49