diff --git a/advent-calendar-2023/index.html b/advent-calendar-2023/index.html
index 95c8b58..468521e 100644
--- a/advent-calendar-2023/index.html
+++ b/advent-calendar-2023/index.html
@@ -127,7 +127,7 @@
div = document.getElementById("day-" + day);
data = days.get("day" + day);
if (data) {
- div.style.backgroundImage = 'url(' + url + data.dir + '/' + data.img + ')';
+ div.style.backgroundImage = 'url(' + url + encodeURIComponent(data.dir) + '/' + encodeURIComponent(data.img) + ')';
}
}
var modal = document.getElementById("modal");