| Hannes Magnusson 2007-06-18, 7:00 pm |
| 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-m...5&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)
|