Ignore failures on preg_match for user supplied regex
Fixes #7440 See: https://stackoverflow.com/a/12941133/6381767pull/9391/head
parent
78797df5f8
commit
7f936d7dbc
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue