Skip to content

Commit

Permalink
Disable backslash escaping in "is allowed" helper
Browse files Browse the repository at this point in the history
  • Loading branch information
mnastalski committed Feb 1, 2023
1 parent cc97bfb commit e0a7806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IsAllowedFileHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private function absolutizePath(string $path): string
public function matches(Scope $scope, string $allowedPath): bool
{
$file = $scope->getTraitReflection() ? $scope->getTraitReflection()->getFileName() : $scope->getFile();
return $file !== null && fnmatch($this->absolutizePath($allowedPath), $file);
return $file !== null && fnmatch($this->absolutizePath($allowedPath), $file, FNM_NOESCAPE);
}


Expand Down

0 comments on commit e0a7806

Please sign in to comment.