aboutsummaryrefslogtreecommitdiffstats
path: root/filters
diff options
context:
space:
mode:
authorGravatar YAEGASHI Takeshi <yaegashi@debian.org>2014-03-02 17:00:16 (JST)
committerGravatar YAEGASHI Takeshi <yaegashi@debian.org>2014-03-02 17:00:16 (JST)
commit667bf9f6ed38daac4e4d7e88903eb0f28319c165 (patch)
treed7d36d505fb3c183bdec673c6e294b27e1a12310 /filters
parent1f57ee005551ae7ee2b387f14eb7dd104a120ee3 (diff)
parentf2fa9c56e29ae32bbe5841e7bfe0217ada4e3df9 (diff)
downloadcgit-667bf9f6ed38daac4e4d7e88903eb0f28319c165.zip
cgit-667bf9f6ed38daac4e4d7e88903eb0f28319c165.tar.gz
Merge tag 'v0.10.1'
CGIT 0.10.1
Diffstat (limited to 'filters')
-rw-r--r--filters/simple-authentication.lua2
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
172end 172end