Skip to content

Commit 9b7aa97

Browse files
authored
Code style, fix too long line
1 parent c0229f7 commit 9b7aa97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/system/sef/sef.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ public function onAfterRender()
153153
// Replace all unknown protocols in CSS background image.
154154
if (strpos($buffer, 'style=') !== false)
155155
{
156-
$regex = '#style=\s*([\'\"])(.*):\s*url\s*\(([\'\"]|\&\#0?3[4|9];)?(?!/|\&\#0?3[4|9];|' . $protocols . '|\#)([^\)\'\"]+)([\'\"]|\&\#0?3[4|9];)?\)#m';
156+
$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';
157158
$buffer = preg_replace($regex, 'style=$1$2: url($3' . $base . '$4$5$6)', $buffer);
158159
$this->checkBuffer($buffer);
159160
}

0 commit comments

Comments
 (0)