X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=newdate.sh;h=b2e35a6b5144c94b602640628a86897cdacc8c5a;hb=3e39dae6551b82017469fd4b2599a364ac288dba;hp=b71bdef063fb6679681cebd533222e7ab4e55e73;hpb=0b60e2e81ffac0fcdd7760d3034f0e1d36f40c8f;p=webpoll diff --git a/newdate.sh b/newdate.sh index b71bdef..b2e35a6 100755 --- a/newdate.sh +++ b/newdate.sh @@ -116,6 +116,8 @@ if [ "$REQUEST_METHOD" = POST ]; then if [ "$(POST cancel)" = cancel ]; then rm -- "$file" REDIRECT "$_BASE/" + elif [ "$(POST post)" = post ]; then + REDIRECT "$_BASE${PATH_INFO%/*}" else REDIRECT "$_BASE$PATH_INFO${month:+?month=}${month}" fi