Use URL-encoded bareJid in file-based store implementations
This commit is contained in:
parent
77f3864ea8
commit
d88e03d70c
|
@ -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()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue