Fix FLEXIAPI-297 Fix PrId and CallId validations

This commit is contained in:
Timothée Jaussoin 2025-05-14 17:37:12 +02:00
parent cf0b835ae4
commit 83b5e66644
3 changed files with 3 additions and 2 deletions

View file

@ -36,6 +36,7 @@ v1.7
- Fix FLEXIAPI-286 Send an account_recovery_token using a push notification and protect the account recovery using phone page with the account_recovery_token
- Fix FLEXIAPI-293 Remove the (long) outdated general documentation
- Fix FLEXIAPI-224 Add a console script to send Space Expiration emails
- Fix FLEXIAPI-297 Fix PrId and CallId validations
v1.6
----

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

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