From: Paul Hänsch Date: Fri, 19 Mar 2021 14:35:56 +0000 (+0100) Subject: limit cookie to base path X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=b3ee3003c0865d1b15054f3867c142029839cd0f;p=webtxt limit cookie to base path --- diff --git a/index.cgi b/index.cgi index 32f1418..1265eb4 100755 --- 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