X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=actions%2Ffilter_attendee.sh;h=cb620d5124387236dd7698cc63419a76aefc1704;hp=a18c1ebae29e7c09a08b52e288ace4f0ac44889f;hb=4e49d483fd5121fda86a33cf583c15afa6556ad1;hpb=c22f240e5cef28ddb31e43b7138fe3ecf659d208 diff --git a/actions/filter_attendee.sh b/actions/filter_attendee.sh index a18c1eb..cb620d5 100755 --- a/actions/filter_attendee.sh +++ b/actions/filter_attendee.sh @@ -19,14 +19,14 @@ cgi_post -case "$_POST[\"choice\"]"; in +case "${_POST[choice]}"; in new_filter) - filter="$_POST[\"filter\"]" - filtertype="$_POST[\"filtertype\"]" - order="$_POST[\"order\"]" - echo -n "Location: ?page=attendees&filter=$filter&filtertype=$filtertype&order=$order\n\n" + filter="${_POST[filter]}" + filtertype="${_POST[filtertype]}" + order="${_POST[order]}" + echo -n "Location: ?p=attendees&filter=$filter&filtertype=$filtertype&order=$order\n\n" ;; *) - echo -n "Location: ?page=attendees\n\n" + echo -n "Location: ?p=attendees\n\n" ;; esac