]> git.plutz.net Git - busy/commitdiff
adapt default m=page mechanism to updated cgi engine
authorpaul <paul@plutz.net>
Sat, 13 Jun 2015 16:15:02 +0000 (16:15 +0000)
committerpaul <paul@plutz.net>
Sat, 13 Jun 2015 16:15:02 +0000 (16:15 +0000)
svn path=/trunk/; revision=65

constants.sh

index 36af54681c1a72bde323d839c08e4ac8a9044546..590c968e9941b06ecae54248d72fe6c056c8447f 100755 (executable)
@@ -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