mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 10:40:01 +01:00
http: Don't treat http:// as a relative path.
This commit is contained in:
1 parent
cf817088e1
commit
ccfc704199
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -43,7 +43,7 @@ std::string ResolveUrl(std::string baseUrl, std::string url) {
|
||||
return baseUrl;
|
||||
} else if (url[0] == '/') {
|
||||
return baseUrl + url.substr(1);
|
||||
} else if (url.substr(0, 7) == "http://") {
|
||||
} else if (startsWith(url, "http://") || startsWith(url, "https://")) {
|
||||
return url;
|
||||
} else {
|
||||
// Huh.
|
||||
|
||||
Reference in new issue
Block a user