diff options
| author | Vincent Richard <[email protected]> | 2006-01-09 19:02:25 +0100 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2006-01-09 19:02:25 +0100 |
| commit | ecf9dbafe69cf9560473f24b311278b746a30848 (patch) | |
| tree | e65921e73fa947890020c361ea217b602c8b9c8d /src | |
| parent | Recognize deleted messages not yet expunged (thanks to Benjamin Biron). (diff) | |
| download | vmime-ecf9dbafe69cf9560473f24b311278b746a30848.tar.gz vmime-ecf9dbafe69cf9560473f24b311278b746a30848.zip | |
Allow '@' in the username part of an URL.
Diffstat (limited to 'src')
| -rw-r--r-- | src/utility/url.cpp | 2 |
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; |
