Skip to content

Commit 987f6f1

Browse files
committed
Always send the real path
1 parent 9fd0686 commit 987f6f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Phug/Compiler/Locator/FileLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function locate($path, array $locations, array $extensions)
1515
{
1616
// @ catch softly PHP open_basedir restriction
1717
if (@is_file($path)) {
18-
return is_readable($path) ? $path : null;
18+
return is_readable($path) ? realpath($path) : null;
1919
}
2020

2121
$path = ltrim($this->normalize($path), '/');

0 commit comments

Comments
 (0)