From ecf9dbafe69cf9560473f24b311278b746a30848 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 9 Jan 2006 18:02:25 +0000 Subject: Allow '@' in the username part of an URL. --- src/utility/url.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/utility/url.cpp b/src/utility/url.cpp index 980922d0..2842b524 100644 --- a/src/utility/url.cpp +++ b/src/utility/url.cpp @@ -165,7 +165,7 @@ void url::parse(const string& str) string::size_type slashPos = str.find('/', protoEnd + 3); if (slashPos == string::npos) slashPos = str.length(); - string::size_type atPos = str.find('@', protoEnd + 3); + string::size_type atPos = str.rfind('@', slashPos); string hostPart; string username; -- cgit