mirror of https://github.com/MISP/MISP
chg: [internal] Disable unicode escaping for JSON
parent
eafc213324
commit
f0dcc9f9ce
|
@ -558,7 +558,7 @@ class RestResponseComponent extends Component
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Do not pretty print response for automatic tools
|
// Do not pretty print response for automatic tools
|
||||||
$flags = $this->isAutomaticTool() ? JSON_UNESCAPED_UNICODE : JSON_PRETTY_PRINT;
|
$flags = $this->isAutomaticTool() ? JSON_UNESCAPED_UNICODE : (JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
|
||||||
$response = json_encode($response, $flags);
|
$response = json_encode($response, $flags);
|
||||||
} else {
|
} else {
|
||||||
if ($dumpSql) {
|
if ($dumpSql) {
|
||||||
|
|
Loading…
Reference in New Issue