svn: /web/php/trunk/ submit-event.php
| From: | Philip Olson | Date: | Sat, 12 Jun 2010 02:34:33 +0000 |
| Subject: | svn: /web/php/trunk/ submit-event.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-8349@lists.php.net to get a copy of this message | ||
philip Sat, 12 Jun 2010 02:34:33 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300397
Log:
Only post to master if no errors exist. And removed PCRE, not needed.
Changed paths:
U web/php/trunk/submit-event.php
Modified: web/php/trunk/submit-event.php
===================================================================
--- web/php/trunk/submit-event.php 2010-06-12 01:13:12 UTC (rev 300396)
+++ web/php/trunk/submit-event.php 2010-06-12 02:34:33 UTC (rev 300397)
@@ -109,7 +109,7 @@
$errors[] = "It's OK. I'm not real either";
}
- if (preg_match("/submit/i", $_POST["action"])) {
+ if (isset($_POST['action']) && $_POST['action'] ===
'Submit' && empty($errors)) {
// Submit to master.php.net
$result = posttohost("http://master.php.net/entry/event.php",
$_POST);
if ($result) {