Skip to content

Commit

Permalink
Strip incorrectly encoded property in OMT datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
daliborjanak committed Feb 19, 2018
1 parent f75b1bb commit d3ebdec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tileserver.php
Expand Up @@ -637,7 +637,9 @@ public function metadataTileJson($metadata) {
if (array_key_exists('json', $metadata)) {
$mjson = json_decode(stripslashes($metadata['json']));
foreach ($mjson as $key => $value) {
$metadata[$key] = $value;
if ($key != 'Layer'){
$metadata[$key] = $value;
}
}
unset($metadata['json']);
}
Expand Down

0 comments on commit d3ebdec

Please sign in to comment.