diff options
author | Christian Hesse <mail@eworm.de> | 2014-01-14 12:01:58 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-14 13:55:44 +0100 |
commit | 1167dbb95bcd6bb2916312a7900e360c101e7eca (patch) | |
tree | c7d544f39259a6679727773e4b335b9548783518 /filters/email-gravatar.lua | |
parent | 46176eca7f130a59813d160415a5ead58133f128 (diff) | |
download | cgit-1167dbb95bcd6bb2916312a7900e360c101e7eca.tar.gz cgit-1167dbb95bcd6bb2916312a7900e360c101e7eca.tar.bz2 |
email-gravatar: fix html syntax issues
* make ampersand a html entity
* add required alt attribute
* add required img end tag
Diffstat (limited to 'filters/email-gravatar.lua')
-rw-r--r-- | filters/email-gravatar.lua | 2 |
1 files changed, 1 insertions, 1 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("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' style='height:10pt;width:10pt'> " .. buffer) + html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " .. buffer) end function filter_write(str) |