From d7b5fe71ba9e895403d3c3414b9b82cc03cf81fc Mon Sep 17 00:00:00 2001 From: Duncan Brown Date: Fri, 4 Mar 2016 11:46:00 +0000 Subject: [PATCH] Fix signature for params with special chars This change was originally proposed by thiago-negri in PR #79. --- lib/class-wp-rest-oauth1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class-wp-rest-oauth1.php b/lib/class-wp-rest-oauth1.php index d95e060..010e5e5 100644 --- a/lib/class-wp-rest-oauth1.php +++ b/lib/class-wp-rest-oauth1.php @@ -731,7 +731,7 @@ public function join_with_equals_sign( $params, $query_params = array(), $key = if ( $key ) { $param_key = $key . '[' . $param_key . ']'; // Handle multi-dimensional array } - $string = $param_key . '=' . $param_value; // join with equals sign + $string = urlencode( $param_key ) . '=' . urlencode( $param_value ); // join with equals sign $query_params[] = urlencode( $string ); } }