Summary: | Files that start with # are shown as folders | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | Sebastian Wiedenroth <wiedi> |
Component: | fish | Assignee: | Jörg Walter <trouble> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | FreeBSD Ports | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Sebastian Wiedenroth
2006-02-22 01:15:42 UTC
See also bug #106648 *** This bug has been marked as a duplicate of 106648 *** Not the same bug as 106648, I'm afraid. SVN commit 601999 by mkoller: BUG: 122455 use KURL::setFileName() to properly encode special chars in filename M +3 -1 fish.cpp --- branches/KDE/3.5/kdebase/kioslave/fish/fish.cpp #601998:601999 @@ -960,7 +960,9 @@ // By default, the mimetype comes from the extension // We'll use the file(1) result only as fallback [like the rest of KDE does] { - KMimeType::Ptr mime = KMimeType::findByURL( KURL("fish://host/" + thisFn) ); + KURL kurl("fish://host/"); + kurl.setFileName(thisFn); // properly encode special chars + KMimeType::Ptr mime = KMimeType::findByURL(kurl); if ( mime->name() != KMimeType::defaultMimeType() ) mimeAtom.m_str = mime->name(); } |