We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6117422 + 346cec9 commit c6fc1dbCopy full SHA for c6fc1db
src/Instrument/FileSystem/Enumerator.php
@@ -97,7 +97,7 @@ public function getFilter()
97
if (!empty($includePaths)) {
98
$found = false;
99
foreach ($includePaths as $includePattern) {
100
- if (fnmatch("{$includePattern}*", $fullPath)) {
+ if (fnmatch("{$includePattern}*", $fullPath, FNM_NOESCAPE)) {
101
$found = true;
102
break;
103
}
@@ -108,7 +108,7 @@ public function getFilter()
108
109
110
foreach ($excludePaths as $excludePattern) {
111
- if (fnmatch("{$excludePattern}*", $fullPath)) {
+ if (fnmatch("{$excludePattern}*", $fullPath, FNM_NOESCAPE)) {
112
return false;
113
114
0 commit comments