Insert the following HTML code to your template
<div id='bg-image' style='background-image:url(database/bg-home.jpg);'></div>
Show the page with SEF feature on and check the source code.
<div id='bg-image' style='background-image:url(database/bg-home.jpg);'></div>
<div id='bg-image' style="background-image: url('/database/bg-home.jpg');'></div>
In plugins/system/sef/sef.php in Row 153 you find this PHP-Code
// Replace all unknown protocols in CSS background image.
if (strpos($buffer, 'style=') !== false)
{
$regex = '#style=\s*[\'\"](.*):\s*url\s*\([\'\"]?(?!/|' . $protocols . '|\#)([^\)\'\"]+)[\'\"]?\)#m';
$buffer = preg_replace($regex, 'style="$1: url(\'' . $base . '$2$3\')', $buffer);
$this->checkBuffer($buffer);
}
This will replace style=' with style=" and ignores the old close char '
Closed as we have a PR for testing #11266
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-03 19:46:18 |
Closed_By | ⇒ | brianteeman |
I think had noticed this 2 years ago ?? this is old code
and since i was careful not to trigger the bug
@ HLeithner
I have made a PR for it, please test