From: paul Date: Sun, 30 Oct 2011 19:37:56 +0000 (+0000) Subject: fixed bug in acl testing X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=5d06a876788f8d90eb5b538fae9487877f7af82c;p=busy fixed bug in acl testing svn path=/trunk/; revision=23 --- diff --git a/write/introedit.cgi b/write/introedit.cgi index bfa6e55..d37af6f 100755 --- a/write/introedit.cgi +++ b/write/introedit.cgi @@ -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)"