From: Legend Tang Date: Sat, 28 Feb 2015 19:03:08 +0000 (+0800) Subject: luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F336%2Fhead;p=oweals%2Fluci.git luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182 --- 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