mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
@@ -68,7 +68,7 @@ function javascript_renderData($xVal, $iOptions = 0)
|
|||||||
throw new Exception('Invalid json_callback value', 400);
|
throw new Exception('Invalid json_callback value', 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
$iOptions |= JSON_UNESCAPED_UNICODE;
|
$iOptions |= JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES;
|
||||||
if (isset($_GET['pretty']) && in_array(strtolower($_GET['pretty']), array('1', 'true'))) {
|
if (isset($_GET['pretty']) && in_array(strtolower($_GET['pretty']), array('1', 'true'))) {
|
||||||
$iOptions |= JSON_PRETTY_PRINT;
|
$iOptions |= JSON_PRETTY_PRINT;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user