Fix short link integrity check for code parameter

This commit is contained in:
Alexander Schmidt
2026-03-26 13:26:05 +01:00
parent 1e2ea6c24d
commit 4b0cd3aaab
2 changed files with 6 additions and 2 deletions

6
app.js
View File

@@ -412,7 +412,11 @@
return;
}
if (data.hash !== currentHash) {
var params = new URLSearchParams(currentHash);
params.delete('c');
var normalizedHash = params.toString();
if (data.hash !== normalizedHash) {
console.warn('xmrpay: Short URL hash mismatch detected for code', code);
showToast(I18n.t('toast_integrity_warning'));
}

2
app.min.js vendored

File diff suppressed because one or more lines are too long