diff options
author | Remko Tronçon <git@el-tramo.be> | 2012-10-05 16:33:13 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2012-10-05 16:33:13 (GMT) |
commit | a83d252c7e4aa6885319d64bbdb6aa54e1fb8f95 (patch) | |
tree | dbff8fe6da71fb500337881f04fcc1f755a38a88 /Swiften/Base/URL.cpp | |
parent | ebe1a1b2ccf2ef8d88ab1981e6f7ab74866b008f (diff) | |
download | swift-contrib-a83d252c7e4aa6885319d64bbdb6aa54e1fb8f95.zip swift-contrib-a83d252c7e4aa6885319d64bbdb6aa54e1fb8f95.tar.bz2 |
Strip leading '/' from BOSH paths.
Resolves: #1167
Diffstat (limited to 'Swiften/Base/URL.cpp')
-rw-r--r-- | Swiften/Base/URL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Base/URL.cpp b/Swiften/Base/URL.cpp index 866cd45..320e2ad 100644 --- a/Swiften/Base/URL.cpp +++ b/Swiften/Base/URL.cpp @@ -45,7 +45,7 @@ URL URL::fromString(const std::string& urlString) { } else { authority = urlString.substr(authorityIndex, slashIndex - authorityIndex); - path = unescape(urlString.substr(slashIndex)); + path = unescape(urlString.substr(slashIndex + 1)); } size_t atIndex = authority.find('@'); |