Skip to content

Commit

Permalink
escape url after add_query_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
mitcho committed Mar 20, 2016
1 parent 897a214 commit 1d65ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shibboleth.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ function shibboleth_update_user_data($user_id, $force_update = false) {
function shibboleth_login_form() {
$login_url = add_query_arg('action', 'shibboleth');
$login_url = remove_query_arg('reauth', $login_url);
echo '<p id="shibboleth_login"><a href="' . $login_url . '">' . __('Login with Shibboleth', 'shibboleth') . '</a></p>';
echo '<p id="shibboleth_login"><a href="' . esc_url($login_url) . '">' . __('Login with Shibboleth', 'shibboleth') . '</a></p>';
}
add_action('login_form', 'shibboleth_login_form');

Expand Down

1 comment on commit 1d65ad6

@carnil
Copy link

@carnil carnil commented on 1d65ad6 Sep 12, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.