*** empty log message ***

This commit is contained in:
Arvid Norberg
2005-06-21 12:25:05 +00:00
parent 718cc17f74
commit 45e764fee4
5 changed files with 11 additions and 9 deletions

View File

@@ -85,13 +85,15 @@ namespace libtorrent
std::string::const_iterator end
= std::find(url.begin(), url.end(), ':');
if (end == url.end()) throw std::runtime_error("invalid url");
while ((*start == ' ' || *start == '\t') && start != end) ++start;
if (end == url.end()) throw std::runtime_error("invalid url: \"" + url + "\"");
++end;
if (end == url.end()) throw std::runtime_error("invalid url");
if (*end != '/') throw std::runtime_error("invalid url");
if (end == url.end()) throw std::runtime_error("invalid url: \"" + url + "\"");
if (*end != '/') throw std::runtime_error("invalid url: \"" + url + "\"");
++end;
if (end == url.end()) throw std::runtime_error("invalid url");
if (*end != '/') throw std::runtime_error("invalid url");
if (end == url.end()) throw std::runtime_error("invalid url: \"" + url + "\"");
if (*end != '/') throw std::runtime_error("invalid url: \"" + url + "\"");
++end;
start = end;