changeset 30159:f06be7aff71c

Linkify file:// Closes #11647.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 03 Jun 2010 22:59:19 +0000
parents 844181ded506
children 7f021333e41f
files libpurple/util.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/util.c	Thu Jun 03 22:47:32 2010 +0000
+++ b/libpurple/util.c	Thu Jun 03 22:59:19 2010 +0000
@@ -2147,6 +2147,8 @@
 			c = process_link(ret, text, c, 6, "", inside_paren);
 		} else if (!g_ascii_strncasecmp(c, "sftp://", 7)) {
 			c = process_link(ret, text, c, 7, "", inside_paren);
+		} else if (!g_ascii_strncasecmp(c, "file://", 7)) {
+			c = process_link(ret, text, c, 7, "", inside_paren);
 		} else if (!g_ascii_strncasecmp(c, "www.", 4) && c[4] != '.' && (c == text || badchar(c[-1]) || badentity(c-1))) {
 			c = process_link(ret, text, c, 4, "http://", inside_paren);
 		} else if (!g_ascii_strncasecmp(c, "ftp.", 4) && c[4] != '.' && (c == text || badchar(c[-1]) || badentity(c-1))) {