]> git.plutz.net Git - serve0/blobdiff - templates/filter.html.sh
regex fixes
[serve0] / templates / filter.html.sh
index 368591e54f29d578aeb70f1aef4b2cf3401ebc61..86d5b2b16bb79fbd6add2e5428a1f1cbc4eae29c 100755 (executable)
@@ -1,4 +1,4 @@
-# Copyright 2014 Paul Hänsch
+# Copyright 2014,2015 Paul Hänsch
 #
 # This file is part of Serve0
 # 
@@ -34,7 +34,7 @@ cat <<EOF
     <p class="help">Up to <strong>10</strong> filter boxes will appear as you start selecting tags. You can select <strong>multiple</strong> tags in each box by holding down the <strong>Ctrl</strong>-key. Click the "<strong>Filter!</strong>" button when you are ready.</p>
 
   $(for n in {0..9}; do
-    filter="$(echo -E "$filters" |cut -d^ -f$(($n+1)))"
+    filter="$(printf '%s^' "$filters" |cut -d^ -f$(($n+1)))"
     fneg="${filter%%[a-zA-Z]*}"
     filter="${filter#!}"
     fcat="${filter%%:*}"