diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-02-15 22:14:11 +0300 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2024-02-16 09:33:12 +0000 |
commit | 2c18d241d85fd09c72dc219c8816275c3e7cd59a (patch) | |
tree | f322a0944c68fd1bc602e6578df2959792c507e3 | |
parent | c4ebd9d0e7a54fedf79dcb959ad65c9e679b370c (diff) | |
download | tdelibs-2c18d241d85fd09c72dc219c8816275c3e7cd59a.tar.gz tdelibs-2c18d241d85fd09c72dc219c8816275c3e7cd59a.zip |
tdeio/KDirLister: add url validity check
Before 0756aab51 and 4d6667159 this validity check was done for all URLs
inside KDirListerCache::listDir(). But since those two commits the result
of this check for remote URLs is impossible to propagate to the user. So
implicit check is in order.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rw-r--r-- | tdeio/tdeio/kdirlister.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tdeio/tdeio/kdirlister.cpp b/tdeio/tdeio/kdirlister.cpp index 534ec6352..bcebb93ee 100644 --- a/tdeio/tdeio/kdirlister.cpp +++ b/tdeio/tdeio/kdirlister.cpp @@ -1946,6 +1946,10 @@ bool KDirLister::openURL( const KURL& _url, bool _keep, bool _reload ) d->changes = NONE; + if ( !validURL( _url ) ) { + return false; + } + // Some ioslaves like media:/ or home:/ can provide a local url istead of a remote one // If a local path is available, monitor that instead of the given remote URL... if (!_url.isLocalFile()) { |