Skip to content

Commit

Permalink
Merge pull request #887 from google/fix/756-nonce-encoding
Browse files Browse the repository at this point in the history
URL-encode nonce for proxy URL
  • Loading branch information
felixarntz authored Nov 20, 2019
2 parents bd0573f + 6028ac3 commit 15f1cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Core/Authentication/Clients/OAuth_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ public function get_proxy_setup_url( $access_code = '', $error_code = '' ) {
array_merge(
$base_args,
array(
'nonce' => $nonce,
'nonce' => rawurlencode( $nonce ),
'name' => rawurlencode( wp_specialchars_decode( get_bloginfo( 'name' ) ) ),
'url' => rawurlencode( $home_url ),
'rest_root' => rawurlencode( $rest_root ),
Expand Down

0 comments on commit 15f1cba

Please sign in to comment.