Skip to content

Commit 90919b5

Browse files
committed
Merge pull request WP-API#61 from BuzzMyVideosDev/feature/issue-11-dont-assume-http
Fix issue WP-API#60, do not assume HTTP for $base_request_uri
2 parents 211eaa9 + 4fb7fd7 commit 90919b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ protected function check_oauth_signature( $consumer, $oauth_params, $token = nul
551551

552552
$params = array_merge( $params, $oauth_params );
553553

554-
$base_request_uri = rawurlencode( get_home_url( null, parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ), 'http' ) );
554+
$base_request_uri = rawurlencode( get_home_url( null, parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ) ) );
555555

556556
// get the signature provided by the consumer and remove it from the parameters prior to checking the signature
557557
$consumer_signature = rawurldecode( $params['oauth_signature'] );

0 commit comments

Comments
 (0)