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

List:       kde-commits
Subject:    branches/KDE/4.1/kdelibs/khtml/misc
From:       Maks Orlovich <maksim () kde ! org>
Date:       2008-08-21 16:40:31
Message-ID: 1219336831.852439.25795.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 850486 by orlovich:

Emulate a quirk of mozilla's content-type parsing and completely ignore content-type 
headers without a /, even for purposes of mimetype validation in strict mode.
Makes www.monosit.ro show up fine (I won't say "fixes it", since The Real Fix(tm)
would be for the server to be configured properly)
BUG:169523


 M  +7 -1      loader.cpp  


--- branches/KDE/4.1/kdelibs/khtml/misc/loader.cpp #850485:850486
@@ -1371,7 +1371,13 @@
     if (!r)
         return;
     CachedObject *o = r->object;
-    o->m_mimetype = s;
+    
+    // Mozilla plain ignores any  mimetype that doesn't have / in it, and handles it \
as "", +    // including when being picky about mimetypes. Match that for better \
compatibility with broken servers. +    if (s.contains('/'))
+        o->m_mimetype = s;
+    else
+        o->m_mimetype = "";
 }
 
 void Loader::slotFinished( KJob* job )


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

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