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:
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
51cb02d
..
a187bed
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
end
if type(str) == "string" then
+ str = str:gsub( "+", " " )
str = str:gsub( "%%([a-fA-F0-9][a-fA-F0-9])", __chrdec )
end
str = str:gsub( "%%([a-fA-F0-9][a-fA-F0-9])", __chrdec )
end