X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=home.sh;h=c4d5754139bb2d6c04a1260e25e4272692be032e;hb=22d77b49555ed424e7d9064b06f37b8caa83f914;hp=bea9940e56af096080dff83507175b8eebe76463;hpb=a193b5186dd4d330110f120fbc23277e426679f9;p=webpoll diff --git a/home.sh b/home.sh index bea9940..c4d5754 100755 --- a/home.sh +++ b/home.sh @@ -18,6 +18,7 @@ if [ "$REQUEST_METHOD" = POST ]; then *) REDIRECT "$_BASE/";; esac else + [ "$PATH_INFO" != / ] && printf 'Status: 404 Not Found\r\n' yield_page "Start a Poll" "home" <<-EOF [form method=post [submit "start" "date" Start a new poll]