mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Various fixes to PathBrowser etc to handle browsing HTTP subfolders
This commit is contained in:
1 parent
80bd328a9d
commit
9c1fd06c2f
4 files changed
+28
-13
No files matched your search
+4
-2
@@ -42,12 +42,14 @@ void Url::Split() {
|
||||
|
||||
size_t sep = url_.find('/', colonSlashSlash + 3);
|
||||
if (sep == std::string::npos) {
|
||||
valid_ = false;
|
||||
return;
|
||||
sep = url_.size();
|
||||
}
|
||||
|
||||
host_ = url_.substr(colonSlashSlash + 3, sep - colonSlashSlash - 3);
|
||||
resource_ = url_.substr(sep); // include the slash!
|
||||
if (resource_.empty()) {
|
||||
resource_ = "/"; // Assume what was meant was the root.
|
||||
}
|
||||
|
||||
size_t portsep = host_.rfind(':');
|
||||
if (portsep != host_.npos) {
|
||||
|
||||
Reference in new issue
Block a user