From: paul Date: Sat, 13 Jun 2015 16:15:02 +0000 (+0000) Subject: adapt default m=page mechanism to updated cgi engine X-Git-Url: http://git.plutz.net/?p=busy;a=commitdiff_plain;h=d003277b8a242d85e8f8cd60aca626c871e4ec89 adapt default m=page mechanism to updated cgi engine svn path=/trunk/; revision=65 --- diff --git a/constants.sh b/constants.sh index 36af546..590c968 100755 --- a/constants.sh +++ b/constants.sh @@ -27,7 +27,7 @@ _wiki(){ LOGIN=false USER="#NONE#" -_GET["p"]=Home +[ -z "$_GET[\"p\"]" ] && _GET["p"]=Home sessfile="$_DATA/auth/session$(sed -rn 's:^.*session=([a-zA-Z0-9]{32}).*$:\1:p' <<<"$HTTP_COOKIE")" if [ -r "$sessfile" ]; then