You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
PPI->PII
This commit is contained in:
@@ -25,7 +25,7 @@ const hashVarRegex = /#\/(group|room|user)\/.*$/;
|
|||||||
|
|
||||||
// Remove all but the first item in the hash path. Redact unexpected hashes.
|
// Remove all but the first item in the hash path. Redact unexpected hashes.
|
||||||
function getRedactedHash(hash) {
|
function getRedactedHash(hash) {
|
||||||
// Don't leak URLs we aren't expecting - they could contain tokens/PPI
|
// Don't leak URLs we aren't expecting - they could contain tokens/PII
|
||||||
const match = hashRegex.exec(hash);
|
const match = hashRegex.exec(hash);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
console.warn(`Unexpected hash location "${hash}"`);
|
console.warn(`Unexpected hash location "${hash}"`);
|
||||||
|
|||||||
Reference in New Issue
Block a user