X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=constants.sh;fp=constants.sh;h=590c968e9941b06ecae54248d72fe6c056c8447f;hp=36af54681c1a72bde323d839c08e4ac8a9044546;hb=d003277b8a242d85e8f8cd60aca626c871e4ec89;hpb=3dc2211d159746a8a0475c3be163cb992b5380af 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