preg_match warning when

Created on 2 September 2024, 3 months ago
Updated 7 September 2024, 3 months ago

Problem/Motivation

Trying to add new strings to match

Steps to reproduce

Add strings like

/\/test\/wp\-*/
/\/web/wp-includes/
/\/blog/wp-includes/
/\/wp-includes/

I get a warning in my log:

Warning: preg_match(): Unknown modifier 'w' in Drupal\perimeter\EventSubscriber\PerimeterSubscriber->handleBannedUrls() (line 136 of /home/minifestival/public_html/modules/contrib/perimeter/src/EventSubscriber/PerimeterSubscriber.php)

I'm not sure what I did wrong, but something like this should be caught when the strings are updated and an appropriate error message issued.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇺🇸United States kenrbnsn New Jersey

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