]> git.plutz.net Git - serve0/blobdiff - widgets.sh
fully implemented listing by filter
[serve0] / widgets.sh
index dc16b30e0396f5244d8446b630b06b3dd6f5bcc9..5cc4db9a7ec03d2526a5e6217896ee20a1b6ad48 100644 (file)
@@ -5,7 +5,8 @@ include_widgets="$0"
 
 . "$_EXEC/cgilite/storage.sh"
 
-w_tags="$(find "$_DATA/" -path '*/.index/meta' -exec cut -f4 '{}' + \
+w_tags="$(find "$_DATA/" -path '*/.index/meta' -print0 \
+        | xargs -r0 cut -f4 \
         | cut -d= -f2- |tr , '\n' | sort -u)"
 w_tags="$(UNSTRING "$w_tags")"
 
@@ -25,6 +26,7 @@ w_search(){
 }
 
 w_prefs(){
+  local fakemp4 mode
   fakemp4="$(COOKIE fakemp4)"
   mode="$(COOKIE mode)"
   printf '
@@ -57,6 +59,7 @@ w_index(){
 }
 
 w_tagging(){
+  local tag category
   printf '[div #multitag [input type="hidden" name="ref" value="%s"]' "$(HTML "$REQUEST_URI")"
   printf '[a href="#" Hide][br]'