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 a2002d429a
commit 294eb340a4
2 changed files with 2 additions and 7 deletions

View file

@ -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()

View file

@ -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)