diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/zenserver/frontend/frontend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenserver/frontend/frontend.cpp b/src/zenserver/frontend/frontend.cpp index b743ca939..8c8e5cb9c 100644 --- a/src/zenserver/frontend/frontend.cpp +++ b/src/zenserver/frontend/frontend.cpp @@ -89,7 +89,7 @@ HttpFrontendService::HandleRequest(zen::HttpServerRequest& Request) using namespace std::literals; std::string_view Uri = Request.RelativeUriWithExtension(); - for (; Uri[0] == '/'; Uri = Uri.substr(1)) + for (; Uri.length() > 0 && Uri[0] == '/'; Uri = Uri.substr(1)) ; if (Uri.empty()) { |