We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0229f7 commit 9b7aa97Copy full SHA for 9b7aa97
plugins/system/sef/sef.php
@@ -153,7 +153,8 @@ public function onAfterRender()
153
// Replace all unknown protocols in CSS background image.
154
if (strpos($buffer, 'style=') !== false)
155
{
156
- $regex = '#style=\s*([\'\"])(.*):\s*url\s*\(([\'\"]|\&\#0?3[4|9];)?(?!/|\&\#0?3[4|9];|' . $protocols . '|\#)([^\)\'\"]+)([\'\"]|\&\#0?3[4|9];)?\)#m';
+ $regex_url = '\s*url\s*\(([\'\"]|\&\#0?3[4|9];)?(?!/|\&\#0?3[4|9];|' . $protocols . '|\#)([^\)\'\"]+)([\'\"]|\&\#0?3[4|9];)?\)';
157
+ $regex = '#style=\s*([\'\"])(.*):' . $regex_url . '#m';
158
$buffer = preg_replace($regex, 'style=$1$2: url($3' . $base . '$4$5$6)', $buffer);
159
$this->checkBuffer($buffer);
160
}
0 commit comments