diff --git a/src/http.cpp b/src/http.cpp index 23cdf2b..49a3075 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -26,7 +26,7 @@ using namespace http; const Request http::parse_request(const string &request) { if (request.substr(0, 8) != "/avatar/" || - request.find('/', 8) != std::string::npos) + request.find("..", 8) != std::string::npos) { cout << "Status: 404 Not Found\n\n"; cerr << "Error: Invalid URL.\n";