From 9b51d3af7b74c7920feee2e6525b069965643675 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 22 May 2016 19:30:16 -0400 Subject: fix symlink detection --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; } -- cgit v1.2.3