From fd2211f85f9275020600619f34f13e1b93294ae5 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sat, 25 Aug 2012 22:15:23 +0200 Subject: [PATCH] Drop the parsed query string from url for incoming HTTP data. --- lib/http_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http_parser.cpp b/lib/http_parser.cpp index b132a9a1..9e8291a5 100644 --- a/lib/http_parser.cpp +++ b/lib/http_parser.cpp @@ -144,6 +144,7 @@ bool HTTP::Parser::parse(std::string & HTTPbuffer){ protocol = tmpA; if (url.find('?') != std::string::npos){ parseVars(url.substr(url.find('?')+1)); //parse GET variables + url.resize(url.find('?')); } }else{seenReq = false;} }else{seenReq = false;}