Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always verify the end of a domain

  • Loading branch information...
commit fc97fc37de1a7adc22789ed04a2621f22f844b8d 1 parent bc68d59
Vicent Marti authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/autolink.c
3  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);
Please sign in to comment.
Something went wrong with that request. Please try again.