Skip to content

Commit

Permalink
Avoid removing token from URL
Browse files Browse the repository at this point in the history
It should not be there for any GET request.

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 6, 2017
1 parent e01319a commit 3064866
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions js/functions.js
Expand Up @@ -214,8 +214,6 @@ function PMA_handleRedirectAndReload(data) {
}
window.location.reload();
} else if (parseInt(data.reload_flag) == 1) {
// remove the token param and reload
window.location.href = window.location.href.replace(/&?token=[^&#]*/g, "");
window.location.reload();
}
}
Expand Down

0 comments on commit 3064866

Please sign in to comment.