1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Merge pull request #277 from vanitasvitae/oxDirectoryFix

Use URL-encoded bareJid in file-based store implementations
This commit is contained in:
Florian Schmaus 2018-10-26 13:03:39 +02:00 committed by GitHub
commit 446b0bb5a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,8 +36,7 @@ public class FileBasedOpenPgpStore extends AbstractOpenPgpStore {
}
public static File getContactsPath(File basePath, BareJid jid) {
// TODO: This is not filesystem agnostic, the jid should be base32 encoded.
return new File(basePath, Objects.requireNonNull(jid.toString()));
return new File(basePath, Objects.requireNonNull(jid.asUrlEncodedString()));
}
}