Skip to content

Commit fc97fc3

Browse files
committed
Always verify the end of a domain
1 parent bc68d59 commit fc97fc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/autolink.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ sd_autolink__email(
235235
break;
236236
}
237237

238-
if (link_end < 2 || nb != 1 || np == 0)
238+
if (link_end < 2 || nb != 1 || np == 0 ||
239+
!isalpha(data[link_end - 1]))
239240
return 0;
240241

241242
link_end = autolink_delim(data, link_end, max_rewind, size);

0 commit comments

Comments
 (0)