From: Jo-Philipp Wich Date: Tue, 10 Mar 2015 17:56:41 +0000 (+0100) Subject: Merge pull request #336 from legendtang/fix X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=4ab6dcea9b7111a23ac6c3bc8d14cfb93a7a52ff;hp=dd2b05289b40002b2e4c098abfc88052e423215f Merge pull request #336 from legendtang/fix 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