mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix check for navigating upwards from http Paths
This commit is contained in:
parent
cd00d06842
commit
755b2a2535
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ bool Path::CanNavigateUp() const {
|
|||
}
|
||||
if (type_ == PathType::HTTP) {
|
||||
size_t rootSlash = path_.find_first_of('/', strlen("https://"));
|
||||
if (rootSlash == path_.npos || path_.size() < rootSlash + 1) {
|
||||
if (rootSlash == path_.npos || path_.size() == rootSlash + 1) {
|
||||
// This means, "http://server" or "http://server/". Can't go up.
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue