projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
dd2b052
)
Merge pull request #336 from legendtang/fix
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 10 Mar 2015 17:56:41 +0000
(18:56 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 10 Mar 2015 17:56:41 +0000
(18:56 +0100)
luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182
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
e9efb44
..
61d7b80
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