contao/core — Issue #4002: Combiner does not work for absolute urls in css files
Author: ofriedrich
Created: 2012-02-25 15:36:52+00:00
State: open

If you have urls like this in your css definitions:

url(/tl_files/images/myimage.png)

the combiner will replace this with

url("../../system/scripts//tl_files/images/myimage.png")

which does not work. The bug is in line 189 combine.php:

$content = preg_replace('/url\("(?!(data:|https?:\/\/))/', 'url("../../' . $strGlue, $content);

which should be replaced by

$content = preg_replace('/url\("(?!(data:|https?:\/\/|\/))/', 'url("../../' . $strGlue, $content);