Skip to content

Commit d1d9864

Browse files
committed
Use urlencode_rfc3986 to URL-encode according to RFC 3986
1 parent 3e81c1a commit d1d9864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/class-wp-rest-oauth1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ public function join_with_equals_sign( $params, $query_params = array(), $key =
732732
$query_params = $this->join_with_equals_sign( $param_value, $query_params, $param_key );
733733
} else {
734734
$string = $param_key . '=' . $param_value; // join with equals sign
735-
$query_params[] = urlencode( $string );
735+
$query_params[] = self::urlencode_rfc3986( $string );
736736
}
737737
}
738738
return $query_params;

0 commit comments

Comments
 (0)