Wrap background-image url string in quotes to support poorly encoded original filenames

This commit is contained in:
Kroonk
2026-04-12 20:18:22 +02:00
parent 33db10f32d
commit eaa5945611
2 changed files with 2 additions and 2 deletions

View File

@@ -210,7 +210,7 @@
if ($image.length == 0) return; if ($image.length == 0) return;
$image.css("background-image", "url(" + $image_img.attr("src") + ")"); $image.css("background-image", "url('" + $image_img.attr("src") + "')");
if ((x = $image_img.data("position"))) $image.css("background-position", x); if ((x = $image_img.data("position"))) $image.css("background-position", x);
$image_img.hide(); $image_img.hide();

File diff suppressed because one or more lines are too long