Skip to content

Commit 6cdb190

Browse files
auth: fix unescaped unicode.
1 parent 840087b commit 6cdb190

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Auth/Auth.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public function setAuthorization($options, $signKey, $clientId)
4848
'clientId' => $clientId,
4949
'path' => $path ? $path : '',
5050
'qs' => $query ? $query : '',
51-
'body' => isset($opts['json']) ? json_encode($opts['json'], JSON_UNESCAPED_SLASHES) : '{}',
51+
'body' => isset($opts['json']) ? json_encode($opts['json'], JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE))
52+
: '{}',
5253
'nonce' => $headers['nonce'],
5354
'timestamp' => $headers['timestamp']
5455
], $signKey);

0 commit comments

Comments
 (0)