]> git.plutz.net Git - busy/commitdiff
added hidden submit button to deceive spambots
authorpaul <paul@plutz.net>
Sun, 30 Oct 2011 18:45:38 +0000 (18:45 +0000)
committerpaul <paul@plutz.net>
Sun, 30 Oct 2011 18:45:38 +0000 (18:45 +0000)
svn path=/trunk/; revision=20

Tasks.page
write/taskmeta.cgi

index 5c4486e6638eb53c2b7f61430ead98f6efcfee7d..f36a969e2a2b66daf80f6a060ef438b7c493ca5c 100644 (file)
@@ -77,8 +77,9 @@ fi
     </select><br>
     <b>other section:</b><br>
     <input type="text" name="section">
-    <input type="submit" value="Robots click here" style="display:none;">
-    <input type="submit" value="Create Task">
+    <input type="submit" name="submit" value="Robots click here" style="display:none;">
+    <input type="submit" name="submit" value="Create Task">
+    <input type="submit" name="submit" value="Robots click here" style="display:none;">
   </div>
 </form>
 TaskEnd
index a5e2ffc99cdfdc053990439598c1638486f8e878..b5c22f4c7857adf298e96676c9a0e5f89174acf6 100755 (executable)
@@ -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