mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 00:18:41 +00:00
simple-authentication: style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
44ccae4227
commit
aa6d5b105d
@ -166,7 +166,7 @@ function url_encode(str)
|
||||
return ""
|
||||
end
|
||||
str = string.gsub(str, "\n", "\r\n")
|
||||
str = string.gsub(str, "([^%w ])", function (c) return string.format("%%%02X", string.byte(c)) end)
|
||||
str = string.gsub(str, "([^%w ])", function(c) return string.format("%%%02X", string.byte(c)) end)
|
||||
str = string.gsub(str, " ", "+")
|
||||
return str
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user