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:
commit
446b0bb5a9
1 changed files with 1 additions and 2 deletions
|
@ -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()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue