Use EncodeURIComponent in setChangePassword.
This commit is contained in:
+1
-1
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user