From 8579f2d8c7a490eff33fbe225a63e00c28ed8854 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 5 Jul 2008 14:23:50 +0000 Subject: [PATCH] libs/http: Added handling of "+" in luci.http.protocl.urldecode --- libs/http/luasrc/http/protocol.lua | 1 + 1 file changed, 1 insertion(+) 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 -- 2.25.1