diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-15 02:07:23 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-15 02:09:52 (JST) |
commit | 6ca734da8fb246ad2272826331e0d56428b96fa1 (patch) | |
tree | 01abfea3df45135b1114996de29093b6eed7023a /filters | |
parent | ce56d89a2662549acd178292450798f5ffcd4bc6 (diff) | |
download | cgit-6ca734da8fb246ad2272826331e0d56428b96fa1.zip cgit-6ca734da8fb246ad2272826331e0d56428b96fa1.tar.gz |
filter: allow returning exit code from filter
Filters can now indicate a status back to cgit by means of the exit code
for exec, or the return value from close for Lua.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'filters')
-rw-r--r-- | filters/email-gravatar.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/filters/email-gravatar.lua b/filters/email-gravatar.lua index 22f0641..c80b63e 100644 --- a/filters/email-gravatar.lua +++ b/filters/email-gravatar.lua | |||
@@ -16,6 +16,7 @@ end | |||
16 | 16 | ||
17 | function filter_close() | 17 | function filter_close() |
18 | html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " .. buffer) | 18 | html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " .. buffer) |
19 | return 0 | ||
19 | end | 20 | end |
20 | 21 | ||
21 | function filter_write(str) | 22 | function filter_write(str) |