We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f23c19 commit b364a91Copy full SHA for b364a91
src/PathPreserver.php
@@ -231,7 +231,7 @@ static public function file_exists($path) {
231
$reset_perms = array();
232
$folder = $path;
233
while ($folder = dirname($folder)) {
234
- if ($folder === '.' || $folder === '/' || strpos($folder, ':\\')) {
+ if ($folder === '.' || $folder === '/' || preg_match("/^.:\\\\$/", $folder)) {
235
break;
236
}
237
elseif ($folder === '') {
0 commit comments