From d79f5da13f0ad2a50dc7f589371a9c4327ff6b42 Mon Sep 17 00:00:00 2001 From: Legend Tang Date: Sun, 1 Mar 2015 03:03:08 +0800 Subject: [PATCH] luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182 --- modules/luci-base/luasrc/http/protocol.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/luasrc/http/protocol.lua b/modules/luci-base/luasrc/http/protocol.lua index e9efb44cf..61d7b802f 100644 --- a/modules/luci-base/luasrc/http/protocol.lua +++ b/modules/luci-base/luasrc/http/protocol.lua @@ -72,7 +72,7 @@ function urlencode( str ) if type(str) == "string" then str = str:gsub( - "([^a-zA-Z0-9$_%-%.%+!*'(),])", + "([^a-zA-Z0-9$_%-%.!*'(),])", __chrenc ) end -- 2.11.0