diff --git a/plugins/system/sef/sef.php b/plugins/system/sef/sef.php index dc33696f529e3..e7c0307be54e5 100644 --- a/plugins/system/sef/sef.php +++ b/plugins/system/sef/sef.php @@ -140,7 +140,7 @@ function ($match) use ($base, $protocols) $data = array(); foreach (explode(",", $match[1]) as $url) { - $data[] = preg_replace('#(?!/|' . $protocols . '|\#|\')([^\s]+)\s+(.*)#', $base . '$1 $2', $url); + $data[] = preg_replace('#^(?!/|' . $protocols . '|\#|\')(.+)#', $base . '$1', trim($url)); } return ' srcset="' . implode(",", $data) . '"'; },