Skip to content

Commit 24dce8c

Browse files
committed
Ensure request parameters are unslashed
1 parent 05ed163 commit 24dce8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/class-wp-json-authentication-oauth1-authorize.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ public function render_page() {
5757
}
5858

5959
// Set up fields
60-
$token_key = $_REQUEST['oauth_token'];
60+
$token_key = wp_unslash( $_REQUEST['oauth_token'] );
6161
$scope = '*';
6262
if ( ! empty( $_REQUEST['wp_scope'] ) ) {
63-
$scope = $_REQUEST['wp_scope'];
63+
$scope = wp_unslash( $_REQUEST['wp_scope'] );
6464
}
6565

6666
$authenticator = new WP_JSON_Authentication_OAuth1();

0 commit comments

Comments
 (0)