From cb1975f45097020ebd572439266c3e1123d188fa Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Sun, 16 Jun 2013 19:09:50 +0100 Subject: Fixed file:// url matching. --- src/common/url.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/common/url.c b/src/common/url.c index def77628..2fda8f6b 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -418,7 +418,7 @@ struct { const char *scheme; /* scheme name. e.g. http */ const char *path_sep; /* string that begins the path */ - int flags; /* see above (flag definitions) */ + int flags; /* see above (flag macros) */ } uri[] = { { "irc", "/", URI_AUTHORITY | URI_PATH }, { "ircs", "/", URI_AUTHORITY | URI_PATH }, @@ -437,7 +437,6 @@ struct { "mumble", "/", URI_AUTHORITY | URI_OPT_USERINFO | URI_PATH }, { "ventrilo", "/", URI_AUTHORITY | URI_OPT_USERINFO | URI_PATH }, { "xmpp", "/", URI_AUTHORITY | URI_OPT_USERINFO | URI_PATH }, - { "file", "/", URI_AUTHORITY | URI_OPT_USERINFO | URI_PATH }, { "h323", ";", URI_AUTHORITY | URI_OPT_USERINFO | URI_PATH }, { "imap", "/", URI_AUTHORITY | URI_OPT_USERINFO | URI_PATH }, { "pop", "/", URI_AUTHORITY | URI_OPT_USERINFO | URI_PATH }, @@ -451,7 +450,8 @@ struct { "bitcoin", "", URI_PATH }, { "gtalk", "", URI_PATH }, { "steam", "", URI_PATH }, - { NULL, '\0', 0} + { "file", "/", URI_PATH }, + { NULL, "", 0} }; static GRegex * -- cgit 1.4.1