Permalink
Browse files

Always verify the end of a domain

  • Loading branch information...
1 parent bc68d59 commit fc97fc37de1a7adc22789ed04a2621f22f844b8d @vmg committed Oct 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/autolink.c
View
@@ -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);

0 comments on commit fc97fc3

Please sign in to comment.