Bugfix: "forcedefault" would be treated as "default".
All checks were successful
the build was successful
All checks were successful
the build was successful
This commit is contained in:
parent
00a29894e9
commit
3f32e4ff51
@ -106,7 +106,11 @@ const Request http::parse_request(const string &request)
|
|||||||
|
|
||||||
const string http::get_parameter(const string &request, const string ¶meter)
|
const string http::get_parameter(const string &request, const string ¶meter)
|
||||||
{
|
{
|
||||||
std::size_t pos = request.find(parameter + "=");
|
std::size_t pos = request.find("&" + parameter + "=");
|
||||||
|
if (pos == std::string::npos)
|
||||||
|
{
|
||||||
|
pos = request.find("?" + parameter + "=");
|
||||||
|
}
|
||||||
if (pos != std::string::npos)
|
if (pos != std::string::npos)
|
||||||
{
|
{
|
||||||
pos += (1 + parameter.length());
|
pos += (1 + parameter.length());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user