projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9778a65
)
libs/http: Added handling of "+" in luci.http.protocl.urldecode
author
Steven Barth
<steven@midlink.org>
Sat, 5 Jul 2008 14:23:50 +0000
(14:23 +0000)
committer
Steven Barth
<steven@midlink.org>
Sat, 5 Jul 2008 14:23:50 +0000
(14:23 +0000)
libs/http/luasrc/http/protocol.lua
patch
|
blob
|
history
diff --git
a/libs/http/luasrc/http/protocol.lua
b/libs/http/luasrc/http/protocol.lua
index 51cb02df2aad129ce4c7c260c488b94f6d846566..a187bed2e6bfb94cb4cc098b7b8b06d3a62ff8db 100644
(file)
--- 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