mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-14 16:58:30 +00:00
parent
44b3fe6277
commit
4ef9ed80cd
2 changed files with 16 additions and 0 deletions
|
@ -2413,6 +2413,7 @@ inline bool is_valid_path(const std::string &path) {
|
|||
// Read component
|
||||
auto beg = i;
|
||||
while (i < path.size() && path[i] != '/') {
|
||||
if (path[i] == '\0') { return false; }
|
||||
i++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue