Fix bug in title encoding.

This commit is contained in:
vng 2013-08-12 14:26:24 +03:00
parent 99e546455b
commit 0868f48b9a

View file

@ -42,7 +42,9 @@ bool EncodeTitle(string & s)
if (i != string::npos)
{
s = s.substr(i+1);
return !s.empty();
if (s.empty())
return false;
}
replace(s.begin(), s.end(), '_', ' ');