Fix FLEXIAPI-466 Implementations MAY use the form "localid@host" in rfc3261 section-8.1.1.4

This commit is contained in:
Timothée Jaussoin 2026-03-30 10:13:21 +02:00
parent 6c9f7ab53f
commit 44f3d78270
2 changed files with 2 additions and 7 deletions

View file

@ -9,7 +9,7 @@ class CallId implements Rule
{ {
public function passes($attribute, $value) public function passes($attribute, $value)
{ {
return Validator::regex('/^[\w\-~]+$/')->validate($value); return Validator::regex('/^[\w\-~\@\.]+$/')->validate($value);
} }
public function message() public function message()

View file

@ -20,12 +20,7 @@
namespace Tests\Feature; namespace Tests\Feature;
use App\Account; use App\Account;
use App\Space;
use App\AccountCreationRequestToken;
use App\AccountCreationToken;
use App\Http\Middleware\ValidateJSON;
use Tests\TestCase; use Tests\TestCase;
use Carbon\Carbon;
class ApiPushNotificationTest extends TestCase class ApiPushNotificationTest extends TestCase
{ {
@ -48,7 +43,7 @@ class ApiPushNotificationTest extends TestCase
'pn_param' => $this->pnParam, 'pn_param' => $this->pnParam,
'pn_prid' => $this->pnPrid, 'pn_prid' => $this->pnPrid,
'type' => $this->type, 'type' => $this->type,
'call_id' => '@blabla@' 'call_id' => '✨blabla'
])->assertJsonValidationErrors(['call_id']); ])->assertJsonValidationErrors(['call_id']);
$this->keyAuthenticated($account) $this->keyAuthenticated($account)