luci-base: fix wrong pattern of urlencode() (encode '+' properly) #182 336/head
authorLegend Tang <sp3478@gmail.com>
Sat, 28 Feb 2015 19:03:08 +0000 (03:03 +0800)
committerLegend Tang <sp3478@gmail.com>
Sat, 28 Feb 2015 19:03:08 +0000 (03:03 +0800)
modules/luci-base/luasrc/http/protocol.lua

index e9efb44..61d7b80 100644 (file)
@@ -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