Skip to content

Commit

Permalink
fix bug in case using real path in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
minkbear committed Nov 14, 2013
1 parent d25a01f commit d27b5ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/Client/src/Client/Service/PathInvokable.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function getAbsolute($path)
}

if (
strpos($path, '/')!==0 ||
($isWindows && !preg_match("/^[a-z]:\\/i", $path))
(strpos($path, '/')!==0 && strpos($path, '/')!==FALSE) ||
($isWindows && !preg_match("/^[a-zA-Z]:/", $path))
) { // if we have relative path
$cwd = $this->getCwd();
$path = $cwd.'/'.$path;
Expand Down

0 comments on commit d27b5ac

Please sign in to comment.