svn path=/trunk/; revision=62
. $_EXEC/pages/common.sh
-filters="$(echo -E "$_GET[\"f\"]" |sed -r 's;^!r*\^*;;; s;\^*!*$;;; s;!+;!;g; s;\^+;^;g')"
+filters="$(echo -E "$_GET[\"f\"]" |sed -r 's;^!*\^*;;; s;\^*!*$;;; s;!+;!;g; s;\^+;^;g')"
debug "FILTERS: $filters"
case "$1" in
-# Copyright 2014 Paul Hänsch
+# Copyright 2014,2015 Paul Hänsch
#
# This file is part of Serve0
#
<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%%:*}"