Skip to content

Commit

Permalink
fix(web): json_encode for REQUEST_URI enter in /reset-password
Browse files Browse the repository at this point in the history
  • Loading branch information
billchenchina committed Sep 9, 2021
1 parent ebf541a commit e357d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/controllers/reset_pw.php
Expand Up @@ -63,7 +63,7 @@ function validateResetPwPost() {
if (!validateResetPwPost()) {
return false;
}
$.post('<?=$_SERVER['REQUEST_URI']?>', {
$.post(json_encode(<?=$_SERVER['REQUEST_URI']?>), {
reset : '',
newPW : md5($('#input-password').val(), "<?= getPasswordClientSalt() ?>")
}, function(res) {
Expand Down

0 comments on commit e357d1c

Please sign in to comment.