Fix the regex in Downloader::HTTP_Login

The regex in ec79a18 was greedy and matched more than was necessary
Change the regex to non-greedy to fix this
This commit is contained in:
Sude 2014-10-20 22:41:10 +03:00
parent ec79a18cf5
commit b8d13514b7

View File

@ -1754,7 +1754,7 @@ int Downloader::HTTP_Login(const std::string& email, const std::string& password
if (script_it->text().find("GalaxyAccounts") != std::string::npos)
{
boost::match_results<std::string::const_iterator> what;
boost::regex expression(".*'(https://auth.gog.com/.*)'.*");
boost::regex expression(".*'(https://auth.gog.com/.*?)'.*");
boost::regex_match(script_it->text(), what, expression);
auth_url = what[1];
break;