]> git.plutz.net Git - webpoll/blobdiff - home.sh
keep invalid URLs intact in case of typo
[webpoll] / home.sh
diff --git a/home.sh b/home.sh
index bea9940e56af096080dff83507175b8eebe76463..c4d5754139bb2d6c04a1260e25e4272692be032e 100755 (executable)
--- 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]