diff --git a/src/View/Requirements_Backend.php b/src/View/Requirements_Backend.php index 1316ae123..a80d9345d 100644 --- a/src/View/Requirements_Backend.php +++ b/src/View/Requirements_Backend.php @@ -1458,10 +1458,10 @@ MESSAGE $content = preg_replace_callback('#(url\([\n\r\s\'"]*)([^\s\)\?\'"]+)#i', function ($match) use ($fileUrlDir) { [ $fullMatch, $prefix, $relativePath ] = $match; if ($relativePath[0] === '/' || false !== strpos($relativePath, '://')) { - return $prefix . $relativePath; + return $fullMatch; } - $full = FilesystemPath::canonicalize(FilesystemPath::join($fileUrlDir, $relativePath)); - return $prefix . $full; + $substitute = FilesystemPath::canonicalize(FilesystemPath::join($fileUrlDir, $relativePath)); + return $prefix . $substitute; }, $content); return $content; }