X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=actions%2Fupdate_attendee.sh;fp=actions%2Fupdate_attendee.sh;h=b6c38bcdd621490c1119fa89b9a70cb1529bb989;hp=51dece85a676701cb1f33cbad6d0fe87a07d263c;hb=c22f240e5cef28ddb31e43b7138fe3ecf659d208;hpb=0cf57dc53c38e306a7303f1b299f38b636fea266 diff --git a/actions/update_attendee.sh b/actions/update_attendee.sh index 51dece8..b6c38bc 100644 --- a/actions/update_attendee.sh +++ b/actions/update_attendee.sh @@ -54,7 +54,7 @@ case "$_POST[\"action\"]" in addfield) echo "$_POST[\"newfield\"]:\r" >>"$tempfile" echo "END:VCARD\r" >>"$tempfile" - echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}&edit=$card\n\n" + echo -n "Location: ?page=attendees${filter}${filtertype}${order}&edit=$card\n\n" ;; update) attendance=() @@ -74,16 +74,16 @@ case "$_POST[\"action\"]" in echo "END:VCARD\r" >>"$tempfile" mv "$tempfile" "$cardfile" - echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}#$card\n\n" + echo -n "Location: ?page=attendees${filter}${filtertype}${order}#$card\n\n" ;; cancel) rm "$tempfile" [ -f "$cardfile" ] \ - && echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}#$card\n\n" \ - || echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}\n\n" + && echo -n "Location: ?page=attendees${filter}${filtertype}${order}#$card\n\n" \ + || echo -n "Location: ?page=attendees${filter}${filtertype}${order}\n\n" ;; delete) rm "$tempfile" "$cardfile" - echo -n "Location: http://$HTTP_HOST/?page=attendees${filter}${filtertype}${order}\n\n" + echo -n "Location: ?page=attendees${filter}${filtertype}${order}\n\n" ;; esac