projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291834e
)
luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182
336/head
author
Legend Tang
<sp3478@gmail.com>
Sat, 28 Feb 2015 19:03:08 +0000
(
03:03
+0800)
committer
Legend Tang
<sp3478@gmail.com>
Sat, 28 Feb 2015 19:03:08 +0000
(
03:03
+0800)
modules/luci-base/luasrc/http/protocol.lua
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/http/protocol.lua
b/modules/luci-base/luasrc/http/protocol.lua
index e9efb44cfa65bf08f93b56f11470dbe6dcb1318b..61d7b802fe87c2dbe4f6276a6dcd78893e35ed93 100644
(file)
--- 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