[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/akregator/src
From:       Frank Osterfeld <frank.osterfeld () kdemail ! net>
Date:       2009-12-05 20:04:31
Message-ID: 1260043471.227667.10317.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1059095 by osterfeld:

merge from 4.3 branch
------------------------------------------------------------------------
r998486 | osterfeld | 2009-07-17 21:09:15 +0200 (Fri, 17 Jul 2009) | 3 lines

actually do what the comment says: check host() for being empty, not the whole URL
prevents non-URL clipboard content from being pasted

------------------------------------------------------------------------


 M  +1 -1      createfeedcommand.cpp  


--- trunk/KDE/kdepim/akregator/src/createfeedcommand.cpp #1059094:1059095
@@ -84,7 +84,7 @@
         assert( clipboard );
         const QString clipboardText = clipboard->text();
         // Check for the hostname, since the isValid method is not strict enough
-        if( !KUrl( clipboardText ).isEmpty() )
+        if( !KUrl( clipboardText ).host().isEmpty() )
             url = clipboardText;
     }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic