summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-10-22 17:34:12 +0200
committerVicent Marti <tanoku@gmail.com>2012-10-22 17:34:12 +0200
commitfc97fc37de1a7adc22789ed04a2621f22f844b8d (patch)
tree55f0d6566b20503f43d059c2de2a8964312b2872
parentbc68d59041c34f425e3a21cdf928dc609e18d01c (diff)
downloadsundown-myr-fc97fc37de1a7adc22789ed04a2621f22f844b8d.tar.gz
Always verify the end of a domain
-rw-r--r--src/autolink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/autolink.c b/src/autolink.c
index b0d2616..6f8d6ab 100644
--- a/src/autolink.c
+++ b/src/autolink.c
@@ -235,7 +235,8 @@ sd_autolink__email(
break;
}
- if (link_end < 2 || nb != 1 || np == 0)
+ if (link_end < 2 || nb != 1 || np == 0 ||
+ !isalpha(data[link_end - 1]))
return 0;
link_end = autolink_delim(data, link_end, max_rewind, size);