Skip to content

Commit

Permalink
SSO: Fix wrongly-escaped URL used for redirection.
Browse files Browse the repository at this point in the history
  • Loading branch information
r-a-y committed Oct 20, 2020
1 parent 66cc139 commit 419cf26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sso.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ function output_javascript_priv() {

document.write('<body>');
document.body.style.display='none';
window.location = '<?php echo addslashes( esc_js( $url ) ); ?>&fragment='+encodeURIComponent(document.location.hash);
window.location = '<?php echo addslashes( esc_url_raw( $url ) ); ?>&fragment='+encodeURIComponent(document.location.hash);
};
<?php

Expand Down

0 comments on commit 419cf26

Please sign in to comment.