]> git.plutz.net Git - serve0/commitdiff
bugfix: use URL escaping for links instead of HTML escaping (relevant for # and ?)
authorPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:02:23 +0000 (03:02 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:02:23 +0000 (03:02 +0200)
list.sh

diff --git a/list.sh b/list.sh
index 5c6634db6d397fa5cf3baa1806b9afd71e225fc3..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")"
 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]' \
 
   if [ -d "$_DATA/$ITEM/$1" ]; then
     printf '[a .list .dir href="%s?%s" %s]' \