luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182

This commit is contained in:
Legend Tang 2015-03-01 03:03:08 +08:00
parent 291834e707
commit d79f5da13f

View file

@ -72,7 +72,7 @@ function urlencode( str )
if type(str) == "string" then if type(str) == "string" then
str = str:gsub( str = str:gsub(
"([^a-zA-Z0-9$_%-%.%+!*'(),])", "([^a-zA-Z0-9$_%-%.!*'(),])",
__chrenc __chrenc
) )
end end