]> git.plutz.net Git - webtxt/blobdiff - index.cgi
limit cookie to base path
[webtxt] / index.cgi
index 32f1418ba05909631723e1e3a87378f174ee6713..1265eb4c6e0aeaef7e82701b555f31925787129d 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -100,7 +100,7 @@ fi
 esac
 
 COOKIE pages |tr \  \\n |grep -qF "${doc##*/}" \
-|| SET_COOKIE +$((90 * 86400)) pages="$(COOKIE pages && printf ' %s' "${doc##*/}" || printf '%s' "${doc##*/}")"
+|| SET_COOKIE +$((90 * 86400)) pages="$(COOKIE pages && printf ' %s' "${doc##*/}" || printf '%s' "${doc##*/}")" Path="${PATH_INFO%/*}/"
 
 yield_page <<-EOF
        [form method=POST