- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 28 Feb 2011 22:11:46 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/boilerplate In directory hutz:/tmp/cvs-serv13204 Modified Files: middle-w3c-feedback Log Message: block more spam Index: middle-w3c-feedback =================================================================== RCS file: /sources/public/html5/boilerplate/middle-w3c-feedback,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- middle-w3c-feedback 28 Feb 2011 21:32:24 -0000 1.2 +++ middle-w3c-feedback 28 Feb 2011 22:11:44 -0000 1.3 @@ -33,8 +33,12 @@ change rapidly and make your feedback harder to understand.</p> <script> function checkFeedbackForm(form) { + if (form.elements.text.value.match(/^ *</)) { + alert('Please don\'t start your feedback with an angle bracket, instead explain what topic your feedback is about first.'); + return true; + } else if (form.elements.text.value.match(/ [^ ]+ [^ ]+ [^ ]+ [^ ]+ /)) { if (form.elements.text.value.match(/^Please enter your feedback, carefully/)) { - alert('Please enter your feedback, explaining what is wrong. Thanks!'); + alert('Please enter your feedback, explaining what is wrong, and without repeating the instructions. Thanks!'); return true; } else if (form.elements.text.value.match(/ [^ ]+ [^ ]+ [^ ]+ [^ ]+ /)) { form.action = "http://www.whatwg.org/specs/web-apps/current-work/file-bug.cgi"; @@ -47,7 +51,7 @@ </script> <p> <input type="submit" value="Submit feedback" onclick="return checkFeedbackForm(form)"> - <small>(Note: Your IP address will be publicly recorded for spam prevention purposes.)</small> + <small>(Note: Your IP address and user agent will be publicly recorded for spam prevention purposes.)</small> </p> </fieldset> </form>
Received on Monday, 28 February 2011 22:11:48 UTC