X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=write%2Ftaskmeta.cgi;h=7b09551d000e0f571f04e872b411782b29f370b3;hb=ab208fff56e536585bc0978898a7c3f610c73dce;hp=a5e2ffc99cdfdc053990439598c1638486f8e878;hpb=470dbac80eb2334fdb04a85e448d6194140d250d;p=busy diff --git a/write/taskmeta.cgi b/write/taskmeta.cgi index a5e2ffc..7b09551 100755 --- a/write/taskmeta.cgi +++ b/write/taskmeta.cgi @@ -18,7 +18,7 @@ #info="$(egrep -o '(^|&)i=[0-9]{10}_[0-9]{3}(&|$)' <<<"${QUERY_STRING}" |tr -d '&i=')" [ "$HTTPS" = "on" ] && PROTO=https || proto=http -. ../auth/acl.sh +. ../auth/permissions.sh $ACL_CREATETASK || echo "Location: ${proto}://${HTTP_HOST}/?p=Error&i=noaccess\n\n" $ACL_CREATETASK || exit 0 @@ -50,6 +50,8 @@ if [ -n "${CONTENT_LENGTH}" -a "${CONTENT_LENGTH}" -gt 0 ]; then comment="$(echo -e "${comment}" |sed 's/\r//g;s/\\/\\\\/g')" elif (egrep -xq 'cancel=.+' <<<"${line}"); then cancel="true" + elif (egrep -xq 'submit=Robots click here' <<<"${line}"); then + cancel="true" fi done fi