TypeError: preg_quote(): Argument #1 ($str) must be of type string, array given in preg_quote() (line 82 of web/core/lib/Drupal/Core/Path/PathMatcher.php) after recent update

Created on 25 July 2024, 4 months ago
Updated 15 August 2024, 3 months ago

Problem/Motivation

After recent update to dev branch, started receiving following exception:
TypeError: preg_quote(): Argument #1 ($str) must be of type string, array given in preg_quote() (line 82 of

/var/www/html/web/core/lib/Drupal/Core/Path/PathMatcher.php).
/var/www/html/web/core/lib/Drupal/Core/Path/PathMatcher.php:82)
Drupal\Core\Path\PathMatcher::matchPath(/var/www/html/web/modules/contrib/drupalauth4ssp/src/SspHandler.php:74)
Drupal\drupalauth4ssp\SspHandler::returnPathIsAllowed(/var/www/html/web/modules/contrib/drupalauth4ssp/drupalauth4ssp.module:26)

Steps to reproduce

- Update the module.
- Login by getting redirected from the SP.
- Get the error.

Proposed resolution

Since returnto_list is now an array, make sure to implode it before using it.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇰🇬Kyrgyzstan elaman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024