]> git.plutz.net Git - serve0/blobdiff - list.sh
bugfix: use URL escaping for links instead of HTML escaping (relevant for # and ?)
[serve0] / list.sh
diff --git a/list.sh b/list.sh
index 72b4fc3561d427731d20b847341036a280c276cd..9482a311e862a58d6c0d896815805af91a6d0aaa 100644 (file)
--- a/list.sh
+++ b/list.sh
@@ -6,7 +6,7 @@
 list_item() {
   local name path length width height tags comment n
   name="$(HTML "$1")"
-  path="$(HTML "$ITEM/$1")"
+  path="$(URL "${ITEM}/${1}")"
 
   if [ -d "$_DATA/$ITEM/$1" ]; then
     printf '[a .list .dir href="%s?%s" %s]' \
@@ -147,6 +147,7 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n'
     [a #t_prefs href="#prefs" ⚙]
   ]
   $(w_prefs)
+  $(w_advsearch)
 
   [form method=POST action="?a=multitag"
     $(list_items \