Merge pull request #336 from legendtang/fix
luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182
This commit is contained in:
commit
4ab6dcea9b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue