changeset 34959:ae29467e3294

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.
author ib
date Sat, 28 Jul 2012 23:57:25 +0000
parents a2ae66db73b2
children 3575219a9c4c
files gui/ui/gtk/url.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 );