diff options
Diffstat (limited to 'Swiften/VCards/VCardFileStorage.cpp')
-rw-r--r-- | Swiften/VCards/VCardFileStorage.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Swiften/VCards/VCardFileStorage.cpp b/Swiften/VCards/VCardFileStorage.cpp index d3163fb..66bae04 100644 --- a/Swiften/VCards/VCardFileStorage.cpp +++ b/Swiften/VCards/VCardFileStorage.cpp @@ -47,7 +47,9 @@ void VCardFileStorage::setVCard(const JID& jid, boost::shared_ptr<VCard> v) { } boost::filesystem::path VCardFileStorage::getVCardPath(const JID& jid) const { - return boost::filesystem::path(vcardsPath / (jid.toBare().toString().getUTF8String() + ".xml")); + String file(jid.toString()); + file.replaceAll('/', "%2f"); + return boost::filesystem::path(vcardsPath / (file.getUTF8String() + ".xml")); } } |