From fd5f5262a7ec6623d29724cb6260e668759395b9 Mon Sep 17 00:00:00 2001 From: jsayol Date: Sat, 7 Mar 2015 23:47:04 +0700 Subject: [PATCH] Fix 'mailto' link scheme to follow the standard (no '//'). For reference: https://tools.ietf.org/html/rfc6068#section-2 --- src/autolink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autolink.c b/src/autolink.c index 83a617c..fbd524b 100644 --- a/src/autolink.c +++ b/src/autolink.c @@ -31,7 +31,7 @@ sd_autolink_issafe(const uint8_t *link, size_t link_len) { static const size_t valid_uris_count = 14; static const char *valid_uris[] = { - "http://", "https://", "ftp://", "mailto://", + "http://", "https://", "ftp://", "mailto:", "/", "git://", "steam://", "irc://", "news://", "mumble://", "ssh://", "ircs://", "ts3server://", "#" };