]> git.plutz.net Git - busy/blobdiff - write/taskmeta.cgi
adjusted cgi scripts for renamed permission-file
[busy] / write / taskmeta.cgi
index a5e2ffc99cdfdc053990439598c1638486f8e878..7b09551d000e0f571f04e872b411782b29f370b3 100755 (executable)
@@ -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