mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-02 12:47:31 +02:00
Fixed problem with line break in MBtiles metadata.
This commit is contained in:
@@ -167,7 +167,8 @@ class Server {
|
||||
|
||||
$resultdata = $result->fetchAll();
|
||||
foreach ($resultdata as $r) {
|
||||
$metadata[$r['name']] = addslashes($r['value']);
|
||||
$value = preg_replace('/(\\n)+/','',$r['value']);
|
||||
$metadata[$r['name']] = addslashes($value);
|
||||
}
|
||||
$metadata = $this->metadataValidation($metadata);
|
||||
$mbt = explode('.', $mbt);
|
||||
|
Reference in New Issue
Block a user