diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-22 19:30:16 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-22 19:30:16 -0400 |
commit | 9b51d3af7b74c7920feee2e6525b069965643675 (patch) | |
tree | 47b499c32f57be5c912f58d79cbc72c754814d1f | |
parent | 649ff4041359190e5390ede9c1a895bdf2fd2d58 (diff) |
fix symlink detection
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; } |