1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-29 07:22:07 +01:00

Use URL-encoded bareJid in file-based store implementations

This commit is contained in:
Paul Schaub 2018-10-26 10:08:29 +02:00
parent 77f3864ea8
commit d88e03d70c
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -36,8 +36,7 @@ public class FileBasedOpenPgpStore extends AbstractOpenPgpStore {
} }
public static File getContactsPath(File basePath, BareJid jid) { 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.asUrlEncodedString()));
return new File(basePath, Objects.requireNonNull(jid.toString()));
} }
} }