diff options
author | Christian Hesse <mail@eworm.de> | 2014-01-15 21:39:54 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-15 22:43:02 (JST) |
commit | 8ae1d8b8fd0b097b10716d0d2d8acaadbd7a46f7 (patch) | |
tree | bb9bf7bf87e07f5d2a133d8448cc65f1a7b9b68b | |
parent | 5bda21faf4df44ba089ee745b72f0806115c322b (diff) | |
download | cgit-8ae1d8b8fd0b097b10716d0d2d8acaadbd7a46f7.zip cgit-8ae1d8b8fd0b097b10716d0d2d8acaadbd7a46f7.tar.gz |
email-gravatar: fix html syntax issues
an attribute value specification must be an attribute value literal
unless SHORTTAG YES is specified
-rw-r--r-- | filters/email-gravatar.lua | 2 | ||||
-rwxr-xr-x | 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 3aad258..52cf426 100644 --- a/filters/email-gravatar.lua +++ b/filters/email-gravatar.lua | |||
@@ -15,7 +15,7 @@ function filter_open(email, page) | |||
15 | end | 15 | end |
16 | 16 | ||
17 | function filter_close() | 17 | function filter_close() |
18 | html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' width=13 height=13 alt='Gravatar' /> " .. buffer) | 18 | html("<img src='//www.gravatar.com/avatar/" .. md5 .. "?s=13&d=retro' width='13' height='13' alt='Gravatar' /> " .. buffer) |
19 | return 0 | 19 | return 0 |
20 | end | 20 | end |
21 | 21 | ||
diff --git a/filters/email-gravatar.py b/filters/email-gravatar.py index 88bc776..d70440e 100755 --- a/filters/email-gravatar.py +++ b/filters/email-gravatar.py | |||
@@ -36,4 +36,4 @@ sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) | |||
36 | md5 = hashlib.md5(email.encode()).hexdigest() | 36 | md5 = hashlib.md5(email.encode()).hexdigest() |
37 | text = sys.stdin.read().strip() | 37 | text = sys.stdin.read().strip() |
38 | 38 | ||
39 | print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&d=retro' width=13 height=13 alt='Gravatar' /> " + text) | 39 | print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&d=retro' width='13' height='13' alt='Gravatar' /> " + text) |