mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-04 13:47:49 +02:00
URL encoding in tilejson. Problem with backslashes in url fixed. #29
This commit is contained in:
@@ -167,7 +167,7 @@ class Server {
|
||||
|
||||
$resultdata = $result->fetchAll();
|
||||
foreach ($resultdata as $r) {
|
||||
$metadata[$r['name']] = $r['value'];
|
||||
$metadata[$r['name']] = addslashes($r['value']);
|
||||
}
|
||||
$metadata = $this->metadataValidation($metadata);
|
||||
$mbt = explode('.', $mbt);
|
||||
@@ -535,7 +535,7 @@ class Json extends Server {
|
||||
echo 'TileServer: unknown map ' . $basename;
|
||||
die;
|
||||
}
|
||||
return $output;
|
||||
return stripslashes($output);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user