Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions includes/class-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct( $data ) {
* @return string
*/
private function create_expected_signature() {
return base64_encode( hash_hmac( 'sha1', json_encode( $this->data ), self::$secret_key, true ) );
return base64_encode( hash_hmac( 'sha1', json_encode( $this->data, JSON_UNESCAPED_UNICODE ), self::$secret_key, true ) );
}

/**
Expand Down Expand Up @@ -69,4 +69,4 @@ public function get_signed_url( $action = '' ) {
}


}
}