From 1167dbb95bcd6bb2916312a7900e360c101e7eca Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 14 Jan 2014 12:01:58 +0100 Subject: [PATCH] email-gravatar: fix html syntax issues * make ampersand a html entity * add required alt attribute * add required img end tag --- filters/email-gravatar.lua | 2 +- filters/email-gravatar.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filters/email-gravatar.lua b/filters/email-gravatar.lua index 9feb611..22f0641 100644 --- a/filters/email-gravatar.lua +++ b/filters/email-gravatar.lua @@ -15,7 +15,7 @@ function filter_open(email, page) end function filter_close() - html(" " .. buffer) + html("Gravatar " .. buffer) end function filter_write(str) diff --git a/filters/email-gravatar.py b/filters/email-gravatar.py index 5d08ea8..97f21cf 100755 --- a/filters/email-gravatar.py +++ b/filters/email-gravatar.py @@ -36,4 +36,4 @@ sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) md5 = hashlib.md5(email.encode()).hexdigest() text = sys.stdin.read().strip() -print(" " + text) +print("Gravatar " + text)