RestApi: no escaping for unicode and slashes

fixes #2243
This commit is contained in:
Thomas Gelf 2020-12-02 18:06:34 +01:00
parent ee2bae47f3
commit 0a9bd53d2d
2 changed files with 3 additions and 1 deletions

View File

@ -52,6 +52,7 @@ before switching to a new version.
* FEATURE: Property Modifier Reject/Select: improve usability (#2228)
* FEATURE: Property Modifier: clone rows for every entry of an Array (#2192)
* FEATURE: Property Modifier: unique array values (#2229)
* FEATURE: Property Modifier: allow to rename columns (#2242)
* FEATURE: Import Sources now allows downloading previewed data as JSON (#2096)
* FEATURE: REST API Import now allows custom headers (#2132)
* FEATURE: REST API Import can now extract nested properties (#2132)
@ -90,6 +91,7 @@ before switching to a new version.
* FEATURE: Self Service API ignores empty/missing properties (e.g. no address)
* FEATURE: Search is now also available for the REST API (#1889)
* FEATURE: Deployment Status is now available (#2187)
* FEATURE: UTF-8 characters and slashes are no longer escaped (#2243)
### Self Service API
* FIX: error handling has been fixed (#1728)

View File

@ -83,7 +83,7 @@ trait RestApi
protected function sendJson(Response $response, $object)
{
$response->setHeader('Content-Type', 'application/json', true);
echo json_encode($object, JSON_PRETTY_PRINT) . "\n";
echo json_encode($object, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . "\n";
}
/**