]> git.plutz.net Git - serve0/commitdiff
escape search string for display
authorPaul Hänsch <paul@plutz.net>
Fri, 12 Mar 2021 10:25:45 +0000 (11:25 +0100)
committerPaul Hänsch <paul@plutz.net>
Fri, 12 Mar 2021 10:25:45 +0000 (11:25 +0100)
widgets.sh

index 5cd371b7e8ae47040db55a617c04fdefc3ca2f9a..4b36b3534e8629c992c46a9309814131c37b1843 100644 (file)
@@ -218,7 +218,7 @@ w_advsearch(){
        printf '[label [checkbox "tag_%s" "%s" %s] %s]' "$n" "$tag" "$t" "$d"
       done
       d="${f##*\$:}" d="${d%%\|*}"
-      [ "$category" = \$ ] && printf '[input name="tag_%i" value="%s"]' "$n" "$d"
+      [ "$category" = \$ ] && printf '[input name="tag_%i" value="%s"]' "$n" "$(HTML "$d")"
       printf '\n]'
     done
     printf ']'