summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-01-03 21:52:05 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-01-03 21:52:05 +0900
commit3d3e77773df70317267c2d471c37e9374256590d (patch)
treea85e714411132dc45cd63f2d8c8dbe1335635336
parent05ee12e2df827059e6f1d01524c19905501cf105 (diff)
downloadtdelibs-3d3e77773df70317267c2d471c37e9374256590d.tar.gz
tdelibs-3d3e77773df70317267c2d471c37e9374256590d.zip
krun: prevent media:/ or system:/media urls to be replaced by their respective /media/... path.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--tdeio/tdeio/krun.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdeio/tdeio/krun.cpp b/tdeio/tdeio/krun.cpp
index 89c84952f..329199da9 100644
--- a/tdeio/tdeio/krun.cpp
+++ b/tdeio/tdeio/krun.cpp
@@ -724,7 +724,8 @@ static KURL::List resolveURLs( const KURL::List& _urls, const KService& _service
const KURL url = *it;
bool supported = url.isLocalFile() || supportedProtocols.find( url.protocol().lower() ) != supportedProtocols.end();
kdDebug(7010) << "Looking at url=" << url << " supported=" << supported << endl;
- if ( !supported && KProtocolInfo::protocolClass(url.protocol()) == ":local" )
+ if ( !supported && KProtocolInfo::protocolClass(url.protocol()) == ":local" &&
+ !url.url().startsWith("media:/") && !url.url().startsWith("system:/media"))
{
// Maybe we can resolve to a local URL?
KURL localURL = TDEIO::NetAccess::mostLocalURL( url, 0 );