From fdec3eb6b8a625642fc01d7170344bdac08ffea8 Mon Sep 17 00:00:00 2001 From: Vitaliy Chesnokov Date: Wed, 15 Jan 2014 17:45:52 +0300 Subject: [PATCH] Update Client.php --- src/Moriony/Service/A1Sms/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Moriony/Service/A1Sms/Client.php b/src/Moriony/Service/A1Sms/Client.php index 9397469..4b396c2 100644 --- a/src/Moriony/Service/A1Sms/Client.php +++ b/src/Moriony/Service/A1Sms/Client.php @@ -78,7 +78,7 @@ public function setPassword($password) */ public function setSender($sender) { - if(!is_scalar($sender) || !preg_match('/^[\d\w]{1,15}$/usi', $sender)) { + if(!is_scalar($sender) || !preg_match('/^[\d\w]{1,11}$/usi', $sender)) { throw new InvalidSenderName; } $this->sender = $sender; @@ -145,7 +145,7 @@ protected function call($operation, array $params) */ public function send($phone, $message) { - if(!is_scalar($phone) || !preg_match('/^[\d]{11,13}$/usi', $phone)) { + if(!is_scalar($phone) || !preg_match('/^[\d]{11,15}$/usi', $phone)) { throw new InvalidPhoneNumber; } if(!is_scalar($message)) {