Skip to content

Commit

Permalink
a better test
Browse files Browse the repository at this point in the history
  • Loading branch information
bnchdrff committed Oct 7, 2015
1 parent 6f23c19 commit b364a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PathPreserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static public function file_exists($path) {
$reset_perms = array();
$folder = $path;
while ($folder = dirname($folder)) {
if ($folder === '.' || $folder === '/' || strpos($folder, ':\\')) {
if ($folder === '.' || $folder === '/' || preg_match("/^.:\\\\$/", $folder)) {
break;
}
elseif ($folder === '') {
Expand Down

0 comments on commit b364a91

Please sign in to comment.