cvs: pearweb /include pear-database-user.php
| From: | David Coallier | Date: | Tue, 25 Mar 2008 01:36:26 +0000 |
| Subject: | cvs: pearweb /include pear-database-user.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-7375@lists.php.net to get a copy of this message | ||
davidc Tue Mar 25 01:36:26 2008 UTC
Modified files:
/pearweb/include pear-database-user.php
Log:
- Bug #11789: Again, removed the A-Z check, what do we care anyways ? Some people may prefer
having their names in all small letters.
http://cvs.php.net/viewvc.cgi/pearweb/include/pear-database-user.php?r1=1.21&r2=1.22&diff_format=u
Index: pearweb/include/pear-database-user.php
diff -u pearweb/include/pear-database-user.php:1.21 pearweb/include/pear-database-user.php:1.22
--- pearweb/include/pear-database-user.php:1.21 Wed Feb 20 22:13:06 2008
+++ pearweb/include/pear-database-user.php Tue Mar 25 01:36:26 2008
@@ -256,14 +256,6 @@
$errors[] = 'Your lastname appears to be too short.';
}
- // Firstname and lastname must start with an uppercase letter
- if (!preg_match("/^[A-Z]/", $data['firstname'])) {
- $errors[] = 'Your firstname must begin with an uppercase letter';
- }
- if (!preg_match("/^[A-Z]/", $data['lastname'])) {
- $errors[] = 'Your lastname must begin with an uppercase letter';
- }
-
// No names with only uppercase letters
if ($data['firstname'] === strtoupper($data['firstname'])) {
$errors[] = 'Your firstname must not consist of only uppercase letters.';
@@ -553,4 +545,4 @@
return $users;
}
-}
\ No newline at end of file
+}