Add some more missing urlencodes

This commit is contained in:
Sijmen 2023-05-02 11:40:18 +02:00
parent f3e57a6f4c
commit 6088dde2da
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@
{% match entry %}
{% when mpd::Entry::Song with { name, path, artist } %}
<li
hx-post="/queue?path={{path}}"
hx-post="/queue?path={{ path|urlencode }}"
hx-trigger="click,keyup[key=='Enter']"
hx-swap="none"
role="button"
@ -40,7 +40,7 @@
>
<span class="material-symbols-outlined" title="Song">music_note</span>
<div class="albumart">
<img src="/art?path={{path}}" onerror="this.style.visibility = 'hidden'">
<img src="/art?path={{ path|urlencode }}" onerror="this.style.visibility = 'hidden'">
</div>
<div class="song">
<div class="song__name">{{ name }}</div>