Commit 3c312039 authored by Chad Barb's avatar Chad Barb

More permissive phone number regexps, for

our foreign clientele.
parent d9498ed9
......@@ -478,7 +478,7 @@ if (! $returning) {
strcmp($formfields[usr_phone], "") == 0) {
$errors["Phone #"] = "Missing Field";
}
elseif (! ereg("^[\(]*[0-9][-\(\) 0-9ext]+$", $formfields[usr_phone])) {
elseif (! ereg("^[-0-9ext\(\)\+\. ]+$", $formfields[usr_phone])) {
$errors["Phone"] = "Invalid characters";
}
if (!isset($formfields[password1]) ||
......
......@@ -630,7 +630,7 @@ if (! $returning) {
strcmp($formfields[usr_phone], "") == 0) {
$errors["Phone #"] = "Missing Field";
}
elseif (! ereg("^[\(]*[0-9][-\(\) 0-9ext]+$", $formfields[usr_phone])) {
elseif (! ereg("^[-0-9ext\(\)\+\. ]+$", $formfields[usr_phone])) {
$errors["Phone"] = "Invalid characters";
}
if (!isset($formfields[password1]) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment