summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-22 19:30:16 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-22 19:30:16 -0400
commit9b51d3af7b74c7920feee2e6525b069965643675 (patch)
tree47b499c32f57be5c912f58d79cbc72c754814d1f /index.php
parent649ff4041359190e5390ede9c1a895bdf2fd2d58 (diff)
fix symlink detection
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index cef99d9..a27b5f0 100644
--- a/index.php
+++ b/index.php
@@ -46,7 +46,7 @@ function classify($root, $dirname, $filename) {
list ($dirname, $parts) = normalizeN($dirname);
$filepath = $root.'/'.$dirname.'/'.$filename;
- $stat = stat($filepath);
+ $stat = lstat($filepath);
if ($filename === '.' ) { return [ [ 'dir' ], $stat]; }
if ($filename === '..') { return [ [ 'dir', 'parent' ], $stat]; }