Use EncodeURIComponent in setChangePassword.

This commit is contained in:
Juliusz Chroboczek
2026-04-29 19:40:33 +02:00
parent 213e3e5c6d
commit b0ce21defe
+1 -1
View File
@@ -397,7 +397,7 @@ function setChangePassword(username) {
if(!(a instanceof HTMLAnchorElement)) if(!(a instanceof HTMLAnchorElement))
throw new Error('Bad type for chpwspan'); throw new Error('Bad type for chpwspan');
if(username) { if(username) {
a.href = `/change-password.html?group=${encodeURI(group)}&username=${encodeURI(username)}`; a.href = `/change-password.html?group=${encodeURIComponent(group)}&username=${encodeURIComponent(username)}`;
a.target = '_blank'; a.target = '_blank';
s.classList.remove('invisible'); s.classList.remove('invisible');
} else { } else {