diff --git a/src/base-apis.js b/src/base-apis.js index f1930d061..670993638 100644 --- a/src/base-apis.js +++ b/src/base-apis.js @@ -1908,7 +1908,8 @@ MatrixBaseApis.prototype.identityHashedLookup = async function( // Abuse the olm hashing const olmutil = new global.Olm.Utility(); params["addresses"] = addressPairs.map(p => { - const hashed = olmutil.sha256(`${p[0]} ${p[1]} ${params['pepper']}`); + const hashed = olmutil.sha256(`${p[0]} ${p[1]} ${params['pepper']}`) + .replace(/\+/g, '-').replace(/\//g, '_'); // URL-safe base64 localMapping[hashed] = p[0]; return hashed; });