diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-07-05 20:12:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-07-05 20:12:24 +0000 |
commit | 8fcbdb39feb7922a2a6b8bd5cf16aca90e93a624 (patch) | |
tree | d2549fb9f36aa4d46e366747e7b0cb18ddeb2f4e /libs/httpd | |
parent | bbe086c9ce76c6abbc26434462736bb8b42f2a6c (diff) |
* luci/libs: make treatment of "+" conditional in http.protocol ("+" should not be decoded by urldecode)
* luci/https: fix breakage introduced by "+" decoding
Diffstat (limited to 'libs/httpd')
-rw-r--r-- | libs/httpd/luasrc/httpd/handler/file.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/httpd/luasrc/httpd/handler/file.lua b/libs/httpd/luasrc/httpd/handler/file.lua index db8a476d4..92cf7ed0a 100644 --- a/libs/httpd/luasrc/httpd/handler/file.lua +++ b/libs/httpd/luasrc/httpd/handler/file.lua @@ -44,7 +44,7 @@ function Simple.getfile(self, uri) end function Simple.handle_get(self, request, sourcein, sinkerr) - local file, stat = self:getfile( self.proto.urldecode( request.env.PATH_INFO ) ) + local file, stat = self:getfile( self.proto.urldecode( request.env.PATH_INFO, true ) ) if stat then if stat.type == "regular" then @@ -95,7 +95,7 @@ function Simple.handle_get(self, request, sourcein, sinkerr) elseif stat.type == "directory" then local ruri = request.request_uri:gsub("/$","") - local duri = self.proto.urldecode( ruri ) + local duri = self.proto.urldecode( ruri, true ) local root = self.docroot:gsub("/$","") -- check for index files |