From: Sarah Hoffmann Date: Tue, 4 Dec 2018 21:28:29 +0000 (+0100) Subject: Don't escape slashes in json output X-Git-Tag: v3.3.0~48 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/e080bdff0f67a3913b99c985430e26150ea6c7a1 Don't escape slashes in json output Fixes #1256. --- diff --git a/lib/lib.php b/lib/lib.php index cd23b068..39462ae3 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -68,7 +68,7 @@ function javascript_renderData($xVal, $iOptions = 0) 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'))) { $iOptions |= JSON_PRETTY_PRINT; }