projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2c50ce
)
* libs/httpd: print request uri, not real path in directory listings
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 28 Jun 2008 23:22:44 +0000
(23:22 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 28 Jun 2008 23:22:44 +0000
(23:22 +0000)
libs/httpd/luasrc/httpd/handler/file.lua
patch
|
blob
|
history
diff --git
a/libs/httpd/luasrc/httpd/handler/file.lua
b/libs/httpd/luasrc/httpd/handler/file.lua
index 7f8e64093c21e178ad1a2ee5284ad58c6eba8572..3c92480477048fe1be37d30e8c9454a1fca90e08 100644
(file)
--- 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