From: paul Date: Sat, 6 Sep 2014 19:31:45 +0000 (+0000) Subject: distinguish cgi fields in redirect, actually read fields first X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=6bef96d67793ffe1ef185aa5bc54f187c551a238;p=serve0 distinguish cgi fields in redirect, actually read fields first svn path=/trunk/; revision=8 --- diff --git a/actions/multitag.sh b/actions/multitag.sh index 064bbe5..c1f27c7 100755 --- a/actions/multitag.sh +++ b/actions/multitag.sh @@ -1,5 +1,10 @@ #!/bin/zsh +filter="$_GET[\"f\"]" +search="$_GET[\"s\"]" +order=$(echo "$_GET[\"o\"]" |egrep '^(Name|Date|Length)$') +page=$(echo "$_GET[\"p\"]" |egrep '^[0-9]+$') + addtag(){ meta="$1" tag="$2" @@ -46,4 +51,4 @@ fi rm "${_DATA}"/cache/\?* 2>/dev/null -echo -n "Location: ?o=$order&i=$info&s=$search&f=$filter#$info\n\n" +echo -n "Location: ?o=$order&s=$search&f=$filter&p=$page#$info\n\n"