From ae1239f8590b0e5910fd3a5b0f7ca55fc40a9bdd Mon Sep 17 00:00:00 2001 From: Slava Abakumov <282234+slaFFik@users.noreply.github.com> Date: Fri, 29 Aug 2025 23:07:44 +0200 Subject: [PATCH] Update JSON encoding to handle Unicode characters --- includes/class-request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-request.php b/includes/class-request.php index e27bfe1..259af0f 100755 --- a/includes/class-request.php +++ b/includes/class-request.php @@ -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 ) ); } /** @@ -69,4 +69,4 @@ public function get_signed_url( $action = '' ) { } -} \ No newline at end of file +}