diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-28 23:22:44 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-28 23:22:44 +0000 |
commit | 40d21303f3975c74b0dc40f9793cac98170a1285 (patch) | |
tree | 5aef8be24e1a2f4305338a05b6fa2272e0ace015 | |
parent | b2c50ce17eab93086aa4e1e1faae572082b6c8cc (diff) |
* libs/httpd: print request uri, not real path in directory listings
-rw-r--r-- | libs/httpd/luasrc/httpd/handler/file.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/httpd/luasrc/httpd/handler/file.lua b/libs/httpd/luasrc/httpd/handler/file.lua index 7f8e64093c..3c92480477 100644 --- a/libs/httpd/luasrc/httpd/handler/file.lua +++ b/libs/httpd/luasrc/httpd/handler/file.lua @@ -117,9 +117,9 @@ function Simple.handle_get(self, request, sourcein, sinkerr) '<html xmlns="http://www.w3.org/1999/xhtml" ' .. 'xml:lang="en" lang="en">\n' .. '<head>\n' .. - '<title>Index of %s</title>\n' .. - '</head><body><h1>Index of %s</h1><hr /><ul>', - file, file + '<title>Index of %s/</title>\n' .. + '</head><body><h1>Index of %s/</h1><hr /><ul>', + ruri, ruri ) for i, e in luci.util.vspairs( luci.fs.dir( file ) ) do |