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 9fd0686 commit 987f6f1Copy full SHA for 987f6f1
src/Phug/Compiler/Locator/FileLocator.php
@@ -15,7 +15,7 @@ public function locate($path, array $locations, array $extensions)
15
{
16
// @ catch softly PHP open_basedir restriction
17
if (@is_file($path)) {
18
- return is_readable($path) ? $path : null;
+ return is_readable($path) ? realpath($path) : null;
19
}
20
21
$path = ltrim($this->normalize($path), '/');
0 commit comments