mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-04-17 11:48:28 +00:00
Fix FLEXIAPI-466 Implementations MAY use the form "localid@host" in rfc3261 section-8.1.1.4
This commit is contained in:
parent
6c9f7ab53f
commit
44f3d78270
2 changed files with 2 additions and 7 deletions
|
|
@ -9,7 +9,7 @@ class CallId implements Rule
|
|||
{
|
||||
public function passes($attribute, $value)
|
||||
{
|
||||
return Validator::regex('/^[\w\-~]+$/')->validate($value);
|
||||
return Validator::regex('/^[\w\-~\@\.]+$/')->validate($value);
|
||||
}
|
||||
|
||||
public function message()
|
||||
|
|
|
|||
|
|
@ -20,12 +20,7 @@
|
|||
namespace Tests\Feature;
|
||||
|
||||
use App\Account;
|
||||
use App\Space;
|
||||
use App\AccountCreationRequestToken;
|
||||
use App\AccountCreationToken;
|
||||
use App\Http\Middleware\ValidateJSON;
|
||||
use Tests\TestCase;
|
||||
use Carbon\Carbon;
|
||||
|
||||
class ApiPushNotificationTest extends TestCase
|
||||
{
|
||||
|
|
@ -48,7 +43,7 @@ class ApiPushNotificationTest extends TestCase
|
|||
'pn_param' => $this->pnParam,
|
||||
'pn_prid' => $this->pnPrid,
|
||||
'type' => $this->type,
|
||||
'call_id' => '@blabla@'
|
||||
'call_id' => '✨blabla'
|
||||
])->assertJsonValidationErrors(['call_id']);
|
||||
|
||||
$this->keyAuthenticated($account)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue