Skip to content

Commit e99962d

Browse files
Release v5.6.0-pre.3 (#2037)
* Release v5.6.0-pre.3 * Remove duplicate bug fix entry in CHANGELOG Removed duplicate bug fix entry for Host header poisoning in version 5.6.0-pre.3. * Update create_terrain_mbtiles.js * Update package-lock.json --------- Co-authored-by: acalcutt <3792408+acalcutt@users.noreply.github.com> Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
1 parent 56ac38f commit e99962d

File tree

4 files changed

+36
-16
lines changed

4 files changed

+36
-16
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
### 🐞 Bug fixes
88
- _...Add new stuff here..._
99

10-
## 5.6.0-pre.2
10+
## 5.6.0-pre.3
1111
### ✨ Features and improvements
1212
- feat: Add ignore-missing-files cli option to avoid crashing at startup ([#1896](https://github.com/maptiler/tileserver-gl/pull/1896)) (by [andrewlaguna824](https://github.com/andrewlaguna824))
1313

1414
### 🐞 Bug fixes
1515
- fix: correctly handle public url in tileJSON response ([#1963](https://github.com/maptiler/tileserver-gl/pull/1963)) (by [andrewlaguna824](https://github.com/andrewlaguna824))
1616
- Fix regex to allow underscore in font name ([#1986](https://github.com/maptiler/tileserver-gl/pull/1986)) (by [spatialillusions](https://github.com/spatialillusions))
17+
- fix: mitigate Host header poisoning (HNP) with TILESERVER_GL_ALLOWED_… ([#2032](https://github.com/maptiler/tileserver-gl/pull/2032)) (by [LeaveerWang](https://github.com/LeaveerWang))
1718

1819
## 5.5.0
1920
- Add S3 support for PMTiles with multiple AWS credential profiles (https://github.com/maptiler/tileserver-gl/pull/1779) by @acalcutt

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tileserver-gl",
3-
"version": "5.6.0-pre.2",
3+
"version": "5.6.0-pre.3",
44
"description": "Map tile server for JSON GL styles - vector and server side generated raster tiles",
55
"main": "src/main.js",
66
"bin": {

test/utils/create_terrain_mbtiles.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { fileURLToPath } from 'url';
1111
const __filename = fileURLToPath(import.meta.url);
1212
const __dirname = path.dirname(__filename);
1313

14+
/**
15+
*
16+
* @param elevation
17+
*/
1418
function elevationToMapboxRGB(elevation) {
1519
// elevation = -10000 + (R * 65536 + G * 256 + B) * 0.1
1620
// (R * 65536 + G * 256 + B) = (elevation + 10000) / 0.1
@@ -21,6 +25,11 @@ function elevationToMapboxRGB(elevation) {
2125
return { r, g, b };
2226
}
2327

28+
/**
29+
*
30+
* @param tileSize
31+
* @param elevation
32+
*/
2433
function createTerrainTile(tileSize, elevation) {
2534
const canvas = createCanvas(tileSize, tileSize);
2635
const ctx = canvas.getContext('2d');
@@ -33,6 +42,12 @@ function createTerrainTile(tileSize, elevation) {
3342
return canvas.toBuffer('image/png');
3443
}
3544

45+
/**
46+
*
47+
* @param db
48+
* @param sql
49+
* @param params
50+
*/
3651
function runDb(db, sql, params = []) {
3752
return new Promise((resolve, reject) => {
3853
db.run(sql, params, function (err) {
@@ -42,6 +57,10 @@ function runDb(db, sql, params = []) {
4257
});
4358
}
4459

60+
/**
61+
*
62+
* @param outputPath
63+
*/
4564
async function createTerrainMbtiles(outputPath) {
4665
const db = new sqlite3.Database(outputPath);
4766

0 commit comments

Comments
 (0)