aboutsummaryrefslogtreecommitdiffstats
path: root/src/utility
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-01-09 19:02:25 +0100
committerVincent Richard <[email protected]>2006-01-09 19:02:25 +0100
commitecf9dbafe69cf9560473f24b311278b746a30848 (patch)
treee65921e73fa947890020c361ea217b602c8b9c8d /src/utility
parentRecognize deleted messages not yet expunged (thanks to Benjamin Biron). (diff)
downloadvmime-ecf9dbafe69cf9560473f24b311278b746a30848.tar.gz
vmime-ecf9dbafe69cf9560473f24b311278b746a30848.zip
Allow '@' in the username part of an URL.
Diffstat (limited to 'src/utility')
-rw-r--r--src/utility/url.cpp2
1 files changed, 1 insertions, 1 deletions
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;