diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-03-10 18:56:41 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-03-10 18:56:41 +0100 |
commit | 4ab6dcea9b7111a23ac6c3bc8d14cfb93a7a52ff (patch) | |
tree | ebd84b449c96c28acf545c8676c8f65b2b1b5473 /modules | |
parent | dd2b05289b40002b2e4c098abfc88052e423215f (diff) | |
parent | d79f5da13f0ad2a50dc7f589371a9c4327ff6b42 (diff) |
Merge pull request #336 from legendtang/fix
luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/luasrc/http/protocol.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |