Fix #1768
This commit is contained in:
parent
82a90a2325
commit
762024b890
2 changed files with 7 additions and 0 deletions
|
@ -2418,6 +2418,7 @@ inline bool is_valid_path(const std::string &path) {
|
|||
auto beg = i;
|
||||
while (i < path.size() && path[i] != '/') {
|
||||
if (path[i] == '\0') { return false; }
|
||||
else if (path[i] == '\\') { return false; }
|
||||
i++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue