From: paul Date: Sun, 30 Oct 2011 18:45:38 +0000 (+0000) Subject: added hidden submit button to deceive spambots X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=0ffc9ae3c80eccd8e1e914a238c6b6be9ce06baa;p=busy added hidden submit button to deceive spambots svn path=/trunk/; revision=20 --- diff --git a/Tasks.page b/Tasks.page index 5c4486e..f36a969 100644 --- a/Tasks.page +++ b/Tasks.page @@ -77,8 +77,9 @@ fi
other section:
- - + + + TaskEnd diff --git a/write/taskmeta.cgi b/write/taskmeta.cgi index a5e2ffc..b5c22f4 100755 --- a/write/taskmeta.cgi +++ b/write/taskmeta.cgi @@ -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