Don't generate mimetypes like "\nvideo/x-mpeg2" -- the bug was in the NP_GetMIMEDescription implementation of

/usr/lib/mozilla/plugins/mplayerplug-in.so, which returns mimetypes separated by ";\n" instead of just ";" as specified by
https://developer.mozilla.org/En/NP_GetMIMEDescription... Nicolas will report that bug, but let's have the workaround
anyway, can't hurt.
BUG: 178562

svn path=/trunk/KDE/kdebase/apps/; revision=901122
This commit is contained in:
David Faure 2008-12-24 13:31:17 +00:00
parent d28be104d2
commit 4676cd66fc

View file

@ -403,7 +403,7 @@ void scanDirectory( const QString &dir, QStringList &mimeInfoList,
kDebug(1433) << " - type=" << *type;
name = name.replace( ':', "%3A" );
QString entry = name + ':' + *type;
QString entry = name + ':' + (*type).trimmed();
if ( !mimeInfoList.contains( entry ) ) {
if (!actuallyUsing) {
// note the plugin name