Permalink
Browse files

Merge pull request #56 from tetsuo13/1c0cf211

Fix issue #54
  • Loading branch information...
peej committed Nov 22, 2011
2 parents 0e2a51e + 1c0cf21 commit dd7a57b5f5c6cc6c4609b30dd0a559f3fe1669f9
Showing with 3 additions and 1 deletion.
  1. +3 −1 classes/phpDoctor.php
View
@@ -463,12 +463,14 @@ function makeAbsolutePath($path, $prefix)
) {
return $path;
} else {
+ if (substr($path, 0, 2) == './') {
+ $path = substr($path, 2);
+ }
$absPath = $this->fixPath($prefix).$path;
$count = 1;
while ($count > 0) {
$absPath = preg_replace('|\w+/\.\./|', '', $absPath, -1, $count);
}
- $absPath = str_replace('./', '', $absPath);
return $absPath;
}
}

0 comments on commit dd7a57b

Please sign in to comment.