mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Encode credentials during login (#6163)
This commit is contained in:
@@ -44,7 +44,8 @@
|
||||
xhr.onerror = function() {
|
||||
document.getElementsByClassName("login-error")[0].innerHTML = localeStrings.internal_error;
|
||||
};
|
||||
xhr.send("username=" + username + "&password=" + password + "&returnURL=" + returnURL);
|
||||
var body = "username=" + encodeURIComponent(username) + "&password=" + encodeURIComponent(password) + "&returnURL=" + encodeURIComponent(returnURL);
|
||||
xhr.send(body);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user