diff options
author | Michele Calgaro <[email protected]> | 2021-01-03 21:52:05 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2021-01-04 11:18:55 +0900 |
commit | 598f5df0fb4c85a929535eeccfe66e3a2b4c457f (patch) | |
tree | 1aa662116c85bbb58f666c6d5b19d20801de8a14 | |
parent | b3012975a49a6520c1d3fd2108eb86a3dbaf8395 (diff) | |
download | tdelibs-598f5df0fb4c85a929535eeccfe66e3a2b4c457f.tar.gz tdelibs-598f5df0fb4c85a929535eeccfe66e3a2b4c457f.zip |
krun: prevent media:/ or system:/media urls to be replaced by their respective /media/... path.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 3d3e77773df70317267c2d471c37e9374256590d)
-rw-r--r-- | tdeio/tdeio/krun.cpp | 3 |
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 ); |