mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Remote ISO: Don't expose HTTP paths from recent for "re-sharing", won't work.
This commit is contained in:
1 parent
71f1e29513
commit
4b027baeb6
1 file changed
+8
-1
+8
-1
@@ -142,6 +142,12 @@ bool RemoteISOFileSupported(const std::string &filename) {
|
||||
}
|
||||
|
||||
static std::string RemotePathForRecent(const std::string &filename) {
|
||||
Path path(filename);
|
||||
if (path.Type() == PathType::HTTP) {
|
||||
// Don't re-share HTTP files from some other device.
|
||||
return std::string();
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
static const std::string sep = "\\/";
|
||||
#else
|
||||
@@ -161,7 +167,8 @@ static std::string RemotePathForRecent(const std::string &filename) {
|
||||
if (RemoteISOFileSupported(basename)) {
|
||||
return ServerUriEncode(basename);
|
||||
}
|
||||
return "";
|
||||
|
||||
return std::string();
|
||||
}
|
||||
|
||||
static Path LocalFromRemotePath(const std::string &path) {
|
||||
|
||||
Reference in new issue
Block a user