diff options
author | Legend Tang <sp3478@gmail.com> | 2015-03-01 03:03:08 +0800 |
---|---|---|
committer | Legend Tang <sp3478@gmail.com> | 2015-03-01 03:03:08 +0800 |
commit | d79f5da13f0ad2a50dc7f589371a9c4327ff6b42 (patch) | |
tree | 73408ef1a341c5bc100ca05a95a9c5d29c051d07 /modules/luci-base/luasrc/http/protocol.lua | |
parent | 291834e707266533a500e43ece71addb050c78bf (diff) |
luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182
Diffstat (limited to 'modules/luci-base/luasrc/http/protocol.lua')
-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 |