1
0
Fork 0

Ignore failures on preg_match for user supplied regex

Fixes #7440

See: https://stackoverflow.com/a/12941133/6381767
pull/9391/head
Marco Sirabella 2020-10-30 08:52:43 -07:00 committed by Jordi Boggiano
parent 78797df5f8
commit 7f936d7dbc
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ abstract class BaseExcludeFilter
$path = $relativePath; $path = $relativePath;
} }
if (preg_match($pattern, $path)) { if (@preg_match($pattern, $path)) {
$exclude = !$negate; $exclude = !$negate;
} }
} }