From 5e377a2b84f28b61146b67fa56f5fce0f7122219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Jaussoin?= Date: Thu, 24 Mar 2022 17:55:57 +0100 Subject: [PATCH] Allow whitespaces in the IsNotPhoneNumber validation rule --- flexiapi/app/Rules/IsNotPhoneNumber.php | 2 +- flexisip-account-manager.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flexiapi/app/Rules/IsNotPhoneNumber.php b/flexiapi/app/Rules/IsNotPhoneNumber.php index c5925e5..07e1e5e 100644 --- a/flexiapi/app/Rules/IsNotPhoneNumber.php +++ b/flexiapi/app/Rules/IsNotPhoneNumber.php @@ -9,7 +9,7 @@ class IsNotPhoneNumber implements Rule { public function passes($attribute, $value): bool { - return (Validator::not(Validator::phone())->not(Validator::startsWith('+'))->noWhitespace()->validate($value)); + return (Validator::not(Validator::phone())->not(Validator::startsWith('+'))->validate($value)); } public function message() diff --git a/flexisip-account-manager.spec b/flexisip-account-manager.spec index 9df9609..5677b4b 100644 --- a/flexisip-account-manager.spec +++ b/flexisip-account-manager.spec @@ -8,7 +8,7 @@ #%define _datadir %{_datarootdir} #%define _docdir %{_datadir}/doc -%define build_number 134 +%define build_number 135 %define var_dir /var/opt/belledonne-communications %define opt_dir /opt/belledonne-communications/share/flexisip-account-manager