From e6855d75157c2122bf5f11fe95454338562a2b44 Mon Sep 17 00:00:00 2001 From: Georgios Papadakis Date: Wed, 3 Aug 2016 22:05:04 +0300 Subject: [PATCH] Code style, fix too long line --- plugins/system/sef/sef.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/system/sef/sef.php b/plugins/system/sef/sef.php index d8b6a8ff72a01..e620e3a0e9dfa 100644 --- a/plugins/system/sef/sef.php +++ b/plugins/system/sef/sef.php @@ -153,7 +153,8 @@ public function onAfterRender() // Replace all unknown protocols in CSS background image. if (strpos($buffer, 'style=') !== false) { - $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];)?\)'; + $regex = '#style=\s*([\'\"])(.*):' . $regex_url . '#m'; $buffer = preg_replace($regex, 'style=$1$2: url($3' . $base . '$4$5$6)', $buffer); $this->checkBuffer($buffer); }