From: Steven Barth Date: Sat, 5 Jul 2008 14:23:50 +0000 (+0000) Subject: libs/http: Added handling of "+" in luci.http.protocl.urldecode X-Git-Tag: 0.8.0~711 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=8579f2d8c7a490eff33fbe225a63e00c28ed8854;ds=sidebyside libs/http: Added handling of "+" in luci.http.protocl.urldecode --- 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