[Tickets #1824] NEW: Patch for LDAP: allowed characters for phone
numbers
bugs at bugs.horde.org
bugs at bugs.horde.org
Tue Apr 19 14:07:12 PDT 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1824
-----------------------------------------------------------------------
Ticket | 1824
Created By | stefan+lists at luethje.ch
Summary | Patch for LDAP: allowed characters for phone numbers
Queue | Horde Framework Packages
State | New
Priority | 2. Medium
Type | Enhancement
Owners |
-----------------------------------------------------------------------
stefan+lists at luethje.ch (2005-04-19 14:07) wrote:
In Germany we use often the slash as delimiter for phone numbers, so the
following patch should fix this:
--- ./lib/Horde/Form.php.save 2005-04-13 20:48:18.000000000 +0200
+++ ./lib/Horde/Form.php 2005-04-13 20:48:47.000000000 +0200
@@ -1246,11 +1246,11 @@
$valid = strlen(trim($value)) > 0;
if (!$valid) {
$message = _("This field is required.");
}
} else {
- $valid = preg_match('/^\+?[\d()\- ]*$/', $value);
+ $valid = preg_match('/^\+?[\d()\- \/]*$/', $value);
if (!$valid) {
$message = _("You have to enter a valid cellphone number,
digits only with an optional '+' for the international dialing prefix.");
}
}
More information about the bugs
mailing list