# HG changeset patch # User ib # Date 1343519845 0 # Node ID ae29467e3294a1c36640aca4cb6aa72f2b7c45d9 # Parent a2ae66db73b25a8238148561bb8136cc05b4d3fe Allow more liberal URL handling. Don't restrict the recognized protocols, but only force http:// if there is no :// in a given string at all. diff -r a2ae66db73b2 -r ae29467e3294 gui/ui/gtk/url.c --- a/gui/ui/gtk/url.c Sat Jul 28 22:28:04 2012 +0000 +++ b/gui/ui/gtk/url.c Sat Jul 28 23:57:25 2012 +0000 @@ -89,11 +89,7 @@ if ( str ) { - if ( strncmp( str,"http://",7 ) - && strncmp( str,"ftp://",6 ) - && strncmp( str,"mms://",6 ) - && strncmp( str,"pnm://",6 ) - && strncmp( str,"rtsp://",7 ) ) + if ( !strstr( str,"://" ) ) { gchar * tmp; tmp=malloc( strlen( str ) + 8 );