aboutsummaryrefslogtreecommitdiff
path: root/src/path_functions.cpp
diff options
context:
space:
mode:
authorSalanto <62221668+Salanto@users.noreply.github.com>2021-09-03 01:25:28 +0200
committerGitHub <noreply@github.com>2021-09-02 18:25:28 -0500
commit74d01e81fbcb9e423cd18ee90eacddbb47f01b14 (patch)
tree78953b98e2533952e6914e302c8c0d0b0d1b9383 /src/path_functions.cpp
parent7ce4dd6f618b64341c9d9520dfc98ede5a7500a7 (diff)
Fix VPath lookup ignoring possibility of remote files (#588)
* Fix VPath lookup ignoring possibility of remote files * Use more formal URL check Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
Diffstat (limited to 'src/path_functions.cpp')
-rw-r--r--src/path_functions.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/path_functions.cpp b/src/path_functions.cpp
index 61df1c60..6fd06e79 100644
--- a/src/path_functions.cpp
+++ b/src/path_functions.cpp
@@ -253,6 +253,12 @@ QString AOApplication::get_real_path(const VPath &vpath) {
}
}
+ // Not found in mount paths; check if the file is remote
+ QString remotePath = vpath.toQString();
+ if (remotePath.startsWith("http:") || remotePath.startsWith("https:")) {
+ return remotePath;
+ }
+
// File or directory not found
return QString();
}