-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing delimiter for preg_match pattern in UrlHelper::inArrayMatchesRegex #22248
Comments
Do you know what value is passed in that triggers the error? |
Maybe we need to add some |
If the value in urlref not contians a query, there is no error. |
There is another issue I got also this error Edit: |
The problem is in our code. We are using |
I got this errors in my log
preg_match(): Delimiter must not be alphanumeric or backslash in /core/UrlHelper.php:41
preg_match(): Delimiter must not be alphanumeric or backslash in /core/UrlHelper.php:46
Matomo version: 5.0.3
PHP version: 8.1.28
As I see the solution could be this lines insted
Line 41: if(@preg_match("/$val/", null) === false) {
Line 46: if( preg_match("/$val/", $test) === 1 ) {
The text was updated successfully, but these errors were encountered: