From 6bef96d67793ffe1ef185aa5bc54f187c551a238 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 6 Sep 2014 19:31:45 +0000 Subject: [PATCH] distinguish cgi fields in redirect, actually read fields first svn path=/trunk/; revision=8 --- actions/multitag.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" -- 2.39.2