summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-10-05 16:33:13 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-10-05 16:33:13 (GMT)
commita83d252c7e4aa6885319d64bbdb6aa54e1fb8f95 (patch)
treedbff8fe6da71fb500337881f04fcc1f755a38a88 /Swiften/Base/URL.cpp
parentebe1a1b2ccf2ef8d88ab1981e6f7ab74866b008f (diff)
downloadswift-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.cpp2
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('@');