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
1 changed files with 1 additions and 2 deletions

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()));
}
}