cvs: phpweb /manual add-note.php

From: Date: Sun, 18 May 2003 16:19:22 +0000
Subject: cvs: phpweb /manual add-note.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17790@lists.php.net to get a copy of this message
alindeman Sun May 18 12:19:22 2003 EDT Modified files: /phpweb/manual add-note.php Log: let the flames begin :) Only allow the submission of 3 notes per minute, to protect aganist a DoS attack Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.48 phpweb/manual/add-note.php:1.49 --- phpweb/manual/add-note.php:1.48 Sat May 17 18:44:40 2003 +++ phpweb/manual/add-note.php Sun May 18 12:19:22 2003 @@ -80,9 +80,13 @@ // If there is any non-header result, then it is an error if ($result) { - echo "<!-- $result -->"; - echo "<p class=\"error\">There was an error processing your submission. It has been automatically e-mailed to the developers, who will process the note manually.</p>"; - } + if (strpos ($result, '[TOO MANY NOTES]') !== false) { + print "<p class=\"error\">As a security precaution, we only allow a certain number of notes to be submitted per minute. At this time, this number has been exceeded. Please re-submit your note in about a minute.</p>"; + } else { + echo "<!-- $result -->"; + echo "<p class=\"error\">There was an error processing your submission. It has been automatically e-mailed to the developers, who will process the note manually.</p>"; + } + } // There was no error returned else {

« previous php.mirrors (#17790) next »