luci-base: urlencode: encode all except unreserved characters.
[project/luci.git] / modules / luci-base / luasrc / http / protocol.lua
index 8592726..0cb62ae 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