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

List:       kde-commits
Subject:    KDE/kdelibs/kio/kio
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2007-01-23 21:49:31
Message-ID: 1169588971.096137.20718.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 626612 by aacid:

Do not trust magic more than pattern if magic accuracy is 0
Aproved by David


 M  +1 -1      kmimetype.cpp  


--- trunk/KDE/kdelibs/kio/kio/kmimetype.cpp #626611:626612
@@ -218,7 +218,7 @@
                     KMimeMagicResult* result =
                         KMimeMagic::self()->findFileType( path );
 
-                    if ( result && result->isValid() ) {
+                    if ( result && result->isValid() && result->accuracy() > 0 ) {
                         mime = mimeType( result->mimeType() );
                         if (!mime) {
                             kWarning() << "KMimeMagic returned unknown mimetype " << \
result->mimeType() << endl;


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

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