diff options
author | Steven Barth <steven@midlink.org> | 2008-07-05 14:23:50 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-05 14:23:50 +0000 |
commit | 8579f2d8c7a490eff33fbe225a63e00c28ed8854 (patch) | |
tree | dbf188b0f98a6b8f59276fb79b39159b69095754 /libs | |
parent | 9778a65f16feb71303b72263940d09d821ce4fa4 (diff) |
libs/http: Added handling of "+" in luci.http.protocl.urldecode
Diffstat (limited to 'libs')
-rw-r--r-- | libs/http/luasrc/http/protocol.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/http/luasrc/http/protocol.lua b/libs/http/luasrc/http/protocol.lua index 51cb02df2..a187bed2e 100644 --- a/libs/http/luasrc/http/protocol.lua +++ b/libs/http/luasrc/http/protocol.lua @@ -30,6 +30,7 @@ function urldecode( str ) end if type(str) == "string" then + str = str:gsub( "+", " " ) str = str:gsub( "%%([a-fA-F0-9][a-fA-F0-9])", __chrdec ) end |