summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc/http/protocol.lua
diff options
context:
space:
mode:
authorLegend Tang <sp3478@gmail.com>2015-03-01 03:03:08 +0800
committerLegend Tang <sp3478@gmail.com>2015-03-01 03:03:08 +0800
commitd79f5da13f0ad2a50dc7f589371a9c4327ff6b42 (patch)
tree73408ef1a341c5bc100ca05a95a9c5d29c051d07 /modules/luci-base/luasrc/http/protocol.lua
parent291834e707266533a500e43ece71addb050c78bf (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.lua2
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