pidgin: eeef28c5: Linkify file://

sadrul at pidgin.im sadrul at pidgin.im
Thu Jun 3 19:15:49 EDT 2010


-----------------------------------------------------------------
Revision: eeef28c55dd6e7476c35edde363fb045a2d939f6
Ancestor: b5a3bee907517738e6cf892ab912e6481d334c41
Author: sadrul at pidgin.im
Date: 2010-06-03T22:59:19
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/eeef28c55dd6e7476c35edde363fb045a2d939f6

Modified files:
        libpurple/util.c

ChangeLog: 

Linkify file://

Closes #11647.

-------------- next part --------------
============================================================
--- libpurple/util.c	167c81b3ac913aadd56d105bedcec69860957242
+++ libpurple/util.c	fc2537aa2ca610ff6748b55802bfd3ff898bf7c2
@@ -2147,6 +2147,8 @@ purple_markup_linkify(const char *text)
 			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))) {


More information about the Commits mailing list