Nginx filesize was broken for some configs
reSize.RegComp("> *([0-9.]+)(B|K|M|G| )</td>");
CRegExp reSizeNginx(true);
- reSizeNginx.RegComp("([0-9]+)(B|K|M|G)?$");
+ reSizeNginx.RegComp(" +([0-9]+)(B|K|M|G)?$");
/* read response from server into string buffer */
char buffer[MAX_PATH + 1024];
else if (reSizeNginx.RegFind(strBuffer.c_str()) >= 0)
{
double Size = atof(reSizeNginx.GetMatch(1).c_str());
- std::string strUnit(reSize.GetMatch(2));
+ std::string strUnit(reSizeNginx.GetMatch(2));
if (strUnit == "K")
Size = Size * 1024;