Skip to content

Commit

Permalink
Bug: 14235 Allow the unicode nbsp character to match.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 4, 2016
1 parent 1b37ba1 commit 4ee8e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Form/lib/Horde/Form/Type.php
Expand Up @@ -460,7 +460,7 @@ function isValid(&$var, &$vars, $value, &$message)
$message = Horde_Form_Translation::t("This field is required.");
return false;
}
} elseif (!preg_match('/^\+?[\d()\-\/. ]*$/', $value)) {
} elseif (!preg_match('/^\+?[\d()\-\/.\s]*$/u', $value)) {
$message = Horde_Form_Translation::t("You must enter a valid phone number, digits only with an optional '+' for the international dialing prefix.");
return false;
}
Expand Down

0 comments on commit 4ee8e70

Please sign in to comment.