Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Nov 1, 2021
1 parent 12591a3 commit df76d73
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -77,6 +77,6 @@ public function getConfigTreeBuilder()

private static function isAbsolutePath(string $path): bool
{
return ! ('' === $path || \DIRECTORY_SEPARATOR !== $path[0] || false === preg_match('#\A[A-Z]:(?![^/\\\\])#i', $path));
return ! ('' === $path || !in_array($path[0], [\DIRECTORY_SEPARATOR, '%'], true) || false === preg_match('#\A[A-Z]:(?![^/\\\\])#i', $path));
}
}

0 comments on commit df76d73

Please sign in to comment.