Skip to content

Commit f538b51

Browse files
committed
Api: get_sha1 is now compliant with full output
1 parent 50b5884 commit f538b51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inc/api.class.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,9 @@ protected function getItem($itemtype, $id, $params = array()) {
763763

764764
// get sha1 footprint if needed
765765
if ($params['get_sha1']) {
766-
$fields = sha1(json_encode($fields));
766+
$fields = sha1(json_encode($fields, JSON_UNESCAPED_UNICODE
767+
| JSON_UNESCAPED_SLASHES
768+
| JSON_NUMERIC_CHECK));
767769
}
768770

769771
return $fields;

0 commit comments

Comments
 (0)