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,7 +637,9 @@ class Json extends Server {
|
|||||||
if (array_key_exists('json', $metadata)) {
|
if (array_key_exists('json', $metadata)) {
|
||||||
$mjson = json_decode(stripslashes($metadata['json']));
|
$mjson = json_decode(stripslashes($metadata['json']));
|
||||||
foreach ($mjson as $key => $value) {
|
foreach ($mjson as $key => $value) {
|
||||||
$metadata[$key] = $value;
|
if ($key != 'Layer'){
|
||||||
|
$metadata[$key] = $value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
unset($metadata['json']);
|
unset($metadata['json']);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user