forked from tastytea/libravatarserv
Fixed the bug introduced by latest bugfix. m(
We included ?/& in the search, but forgot to set the pos +1 char to the right.
This commit is contained in:
parent
79ed6d6432
commit
1a4ebaf024
|
@ -113,7 +113,7 @@ const string http::get_parameter(const string &request, const string ¶meter)
|
||||||
}
|
}
|
||||||
if (pos != std::string::npos)
|
if (pos != std::string::npos)
|
||||||
{
|
{
|
||||||
pos += (1 + parameter.length());
|
pos += (2 + parameter.length());
|
||||||
return request.substr(pos, request.find('&', pos));
|
return request.substr(pos, request.find('&', pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue