cvs: php-master-web /entry cvs-account.php
| From: | Hannes Magnusson | Date: | Mon, 18 Jun 2007 20:35:50 +0000 |
| Subject: | cvs: php-master-web /entry cvs-account.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-35737@lists.php.net to get a copy of this message | ||
bjori Mon Jun 18 20:35:50 2007 UTC
Modified files:
/php-master-web/entry cvs-account.php
Log:
Sync with phpweb: Add another sanitycheck question
http://cvs.php.net/viewvc.cgi/php-master-web/entry/cvs-account.php?r1=1.14&r2=1.15&diff_format=u
Index: php-master-web/entry/cvs-account.php
diff -u php-master-web/entry/cvs-account.php:1.14 php-master-web/entry/cvs-account.php:1.15
--- php-master-web/entry/cvs-account.php:1.14 Sun Jun 17 17:00:48 2007
+++ php-master-web/entry/cvs-account.php Mon Jun 18 20:35:50 2007
@@ -8,6 +8,11 @@
if (empty($name) || empty($email) || empty($username) || empty($passwd) || empty($note))
die("missing some parameters");
+// Sophisticated security/spam protection question
+if (empty($yesno) || $yesno != "yes") {
+ die("You did not fill the form out correctly");
+}
+
$username = strtolower($username);
# these are reserved account names. some of them (like webmaster and group)