diff options
author | Jason A. Donenfeld | 2014-01-23 00:58:07 +0100 |
---|---|---|
committer | Jason A. Donenfeld | 2014-01-23 00:58:07 +0100 |
commit | aa6d5b105de9de6d01855c15217e46fd36890dbc (patch) | |
tree | a11402ce8f8b11f80113bbd95e8c90db487d4dbf | |
parent | makefile: use LUA_PKGCONFIG to set Lua implementation (diff) | |
download | cgit-aa6d5b105de9de6d01855c15217e46fd36890dbc.tar.gz cgit-aa6d5b105de9de6d01855c15217e46fd36890dbc.zip |
simple-authentication: style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | filters/simple-authentication.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filters/simple-authentication.lua b/filters/simple-authentication.lua index 230d3a3..cc86b7e 100644 --- a/filters/simple-authentication.lua +++ b/filters/simple-authentication.lua | |||
@@ -166,7 +166,7 @@ function url_encode(str) | |||
166 | return "" | 166 | return "" |
167 | end | 167 | end |
168 | str = string.gsub(str, "\n", "\r\n") | 168 | str = string.gsub(str, "\n", "\r\n") |
169 | str = string.gsub(str, "([^%w ])", function (c) return string.format("%%%02X", string.byte(c)) end) | 169 | str = string.gsub(str, "([^%w ])", function(c) return string.format("%%%02X", string.byte(c)) end) |
170 | str = string.gsub(str, " ", "+") | 170 | str = string.gsub(str, " ", "+") |
171 | return str | 171 | return str |
172 | end | 172 | end |