From 6ca734da8fb246ad2272826331e0d56428b96fa1 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 14 Jan 2014 18:07:23 +0100 Subject: 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 --- filters/email-gravatar.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'filters') 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 function filter_close() html("Gravatar " .. buffer) + return 0 end function filter_write(str) -- cgit v1.1