summaryrefslogtreecommitdiff
path: root/packages/konqueror/konqueror-embedded-20030705/malformed.patch
blob: 542d2079d364f9777e2083752fdc4a8fbd4c44a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff -uNr konq.orig/konq-embed/src/mainwindowbase.cc konqueror-embedded-snapshot-20030705/konq-embed/src/mainwindowbase.cc
--- konq.orig/konq-embed/src/mainwindowbase.cc	2005-01-26 14:34:06.335579881 +0100
+++ konqueror-embedded-snapshot-20030705/konq-embed/src/mainwindowbase.cc	2005-01-26 14:35:55.839632151 +0100
@@ -357,12 +357,12 @@
 
     if ( u.isMalformed() )
     {
-	if ( QRegExp( "^www" ).match( text ) == 0 )
-	    u = KURL( text.prepend( "http://" ) );
 #if defined(ENABLE_FTP)
-	else if ( QRegExp( "^ftp" ).match( text ) == 0 )
+	if ( QRegExp( "^ftp" ).match( text ) == 0 )
 	    u = KURL( text.prepend( "ftp://" ) );
+        else
 #endif
+	    u = KURL( text.prepend( "http://" ) );
     }
 
     if ( !u.isMalformed() )