]> git.plutz.net Git - busy/commitdiff
fixed bug in acl testing
authorpaul <paul@plutz.net>
Sun, 30 Oct 2011 19:37:56 +0000 (19:37 +0000)
committerpaul <paul@plutz.net>
Sun, 30 Oct 2011 19:37:56 +0000 (19:37 +0000)
svn path=/trunk/; revision=23

write/introedit.cgi

index bfa6e55f2a2214e50aa940d56ac09cce4aeea9b7..d37af6f6b6261179503d328fe3750701bf86eef2 100755 (executable)
@@ -24,10 +24,10 @@ if [ "$info" = "news" ]; then
   $ACL_ADDNEWS || info=''
 elif [ "$info" = "intro" ]; then
   $ACL_EDITINTRO || info=''
-elif [ -z "$info" ]
+elif [ -z "$info" ]; then
   $ACL_EDITNEWS || info=''
 fi
-[ -n "$info" ] || echo "Location: ${proto}://${HTTP_HOST}/?p=Error&i=noaccess\n\n"
+[ -n "$info" ] || echo -n "Location: ${proto}://${HTTP_HOST}/?p=Error&i=noaccess\n\n"
 [ -n "$info" ] || exit 0
 
 [ "$info" = "news" ] && info="$(date +%s)_$(apg -M N -a 1 -n 1 -m 3 -x 3)"