From 45e764fee44e51ae99c3974a448ab54f92a10c21 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 21 Jun 2005 12:25:05 +0000 Subject: [PATCH] *** empty log message *** --- docs/index.html | 2 +- docs/index.rst | 2 +- docs/manual.html | 2 +- docs/manual.rst | 2 +- src/tracker_manager.cpp | 12 +++++++----- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/docs/index.html b/docs/index.html index 3dd0017e4..33ed9ce82 100755 --- a/docs/index.html +++ b/docs/index.html @@ -60,7 +60,7 @@ example client.

Acknowledgements

Written by Arvid Norberg. Copyright (c) 2003

-

Contributions by Magnus Jonsson and Daniel Wallin

+

Contributions by Magnus Jonsson, Daniel Wallin and Cory Nelson

Thanks to Reimond Retz for bugfixes, suggestions and testing

Project is hosted by sourceforge.

sf_logo

diff --git a/docs/index.rst b/docs/index.rst index 8e8901a20..8fb363771 100755 --- a/docs/index.rst +++ b/docs/index.rst @@ -62,7 +62,7 @@ Acknowledgements Written by Arvid Norberg. Copyright (c) 2003 -Contributions by Magnus Jonsson and Daniel Wallin +Contributions by Magnus Jonsson, Daniel Wallin and Cory Nelson Thanks to Reimond Retz for bugfixes, suggestions and testing diff --git a/docs/manual.html b/docs/manual.html index b1efbbc20..c0be79719 100755 --- a/docs/manual.html +++ b/docs/manual.html @@ -2490,7 +2490,7 @@ boost::filesystem::path::default_name_check(boost::filesystem::native);

acknowledgements

Written by Arvid Norberg. Copyright (c) 2003

-

Contributions by Magnus Jonsson and Daniel Wallin

+

Contributions by Magnus Jonsson, Daniel Wallin and Cory Nelson

Thanks to Reimond Retz for bugfixes, suggestions and testing

Thanks to University of UmeƄ for providing development and test hardware.

diff --git a/docs/manual.rst b/docs/manual.rst index ad14ac68d..6dd3b7ac4 100755 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -2483,7 +2483,7 @@ acknowledgements Written by Arvid Norberg. Copyright (c) 2003 -Contributions by Magnus Jonsson and Daniel Wallin +Contributions by Magnus Jonsson, Daniel Wallin and Cory Nelson Thanks to Reimond Retz for bugfixes, suggestions and testing diff --git a/src/tracker_manager.cpp b/src/tracker_manager.cpp index 3d8ee7ffd..e2198c2ce 100755 --- a/src/tracker_manager.cpp +++ b/src/tracker_manager.cpp @@ -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;