cvs: phpweb / submit-event.php
| From: | Hannes Magnusson | Date: | Sat, 06 Jan 2007 17:05:07 +0000 |
| Subject: | cvs: phpweb / submit-event.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-33701@lists.php.net to get a copy of this message | ||
bjori Sat Jan 6 17:05:07 2007 UTC
Modified files:
/phpweb submit-event.php
Log:
Fixed bug#39981 (Can not submit user group event containing the word "test")
http://cvs.php.net/viewvc.cgi/phpweb/submit-event.php?r1=1.30&r2=1.31&diff_format=u
Index: phpweb/submit-event.php
diff -u phpweb/submit-event.php:1.30 phpweb/submit-event.php:1.31
--- phpweb/submit-event.php:1.30 Thu Sep 28 16:41:51 2006
+++ phpweb/submit-event.php Sat Jan 6 17:05:07 2007
@@ -1,5 +1,5 @@
<?php
-// $Id: submit-event.php,v 1.30 2006/09/28 16:41:51 bjori Exp $
+// $Id: submit-event.php,v 1.31 2007/01/06 17:05:07 bjori Exp $
$_SERVER['BASE_PAGE'] = 'submit-event.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
@@ -40,14 +40,6 @@
}
// Clean and validate data
- if (preg_match("/\btest\b/i", $_POST['sdesc'])) {
- $errors[] = 'We know this works. Please do not test the system.';
- }
-
- if (preg_match("/\btest\b/i", $_POST['ldesc'])) {
- $errors[] = 'We know this works. Please do not test the system.';
- }
-
if (!is_emailable_address($_POST['email'])) {
$errors[] = 'You must supply a valid email address.';
}