mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-01 12:10:13 +02:00
Strip incorrectly encoded property in OMT datasets
This commit is contained in:
@@ -637,8 +637,10 @@ class Json extends Server {
|
||||
if (array_key_exists('json', $metadata)) {
|
||||
$mjson = json_decode(stripslashes($metadata['json']));
|
||||
foreach ($mjson as $key => $value) {
|
||||
if ($key != 'Layer'){
|
||||
$metadata[$key] = $value;
|
||||
}
|
||||
}
|
||||
unset($metadata['json']);
|
||||
}
|
||||
return $metadata;
|
||||
|
Reference in New Issue
Block a user