Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Poortvliet <jospoortvliet@gmail.com>2016-08-24 17:34:15 +0300
committerJos Poortvliet <jospoortvliet@gmail.com>2016-08-24 17:34:15 +0300
commit12580cfe0ed2dce1b69926eca2199858a7740c0d (patch)
treef59962092cf936d216dc1e25215cb680056dcdca /page-providersubmit.php
parent5d1eb918f6433a3dc8312a38aad247f220fd68ab (diff)
relax phone nr check
Diffstat (limited to 'page-providersubmit.php')
-rw-r--r--page-providersubmit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/page-providersubmit.php b/page-providersubmit.php
index 22be3292..dbb3a899 100644
--- a/page-providersubmit.php
+++ b/page-providersubmit.php
@@ -45,7 +45,7 @@ if(isset($_POST['email'])) {
if(!preg_match($string_exp,$organization)) {
$error_message .= 'The organization you entered does not appear to be valid.<br />';
}
- $string_exp = "/^((\+|00)\d{1,3})?\d+$/";
+ $string_exp = "/^((\+|00)\d{1,3})?(\d+|\s+)+\d$/";
if(!preg_match($string_exp,$phone)) {
$error_message .= 'The phone number you entered does not appear to be valid, did you add a country code like +49?<br />';
}