1
0
mirror of https://github.com/klokantech/tileserver-php.git synced 2025-08-04 13:47:49 +02:00

105 Commits

Author SHA1 Message Date
mheranco
4fe14e6164 Fix security issues - thanks @mheranco (#166)
* Fix XSS

* Check if requested tile resides inside the current directory

* Add input validation for "renderTile"

* Use floatval instead of "int" for casting
2025-07-14 17:08:39 +02:00
David Eagles
7800af830a Modified WMTS Resource URL generation to support hostnames that contain the layer name.
If the hostname contained the layer name (eg. https://layername.domain.com/layername/wmts) then the WMTS capabilities document contained an incorrect Resource URL because the hostname was stripped back to simply https://.  This modification simply looks for the last occurrence of the layer name instead of the first when forming the Resource URL.
2021-09-24 11:09:17 +10:00
Dalibor Janák
eb571b5d70 Merge pull request #144 from scubajorgen/master
Resolved bug in transparent png tile
2020-08-10 07:53:51 +02:00
Dalibor Janak
43e3cadb87 Remove old aray syntax 2020-07-28 22:34:22 +02:00
Jorgen
54254f8ef1 Resolved bug in transparent png tile 2019-07-11 13:27:21 +02:00
CodeLingoBot
4c339b8d19 Change PHP keywords to comply with PSR2
Signed-off-by: CodeLingoBot <bot@codelingo.io>
2019-04-03 11:24:50 +13:00
Isaac Besora Vilardaga
d11963d43c Removes body data from http 204 response 2019-01-07 14:01:19 +01:00
Dalibor Janák
2a84c6271f Fix Undefined index SERVER_PORT router error in some server configs 2018-02-19 16:31:18 +01:00
Dalibor Janák
dca0e64219 Removed unused var in router 2018-02-19 16:15:51 +01:00
Dalibor Janák
d3ebdec555 Strip incorrectly encoded property in OMT datasets 2018-02-19 15:52:48 +01:00
Dalibor Janák
f75b1bbfa6 Don't need trailing slash in dataroot 2017-12-05 15:31:40 +01:00
Matt Burke
dc2452e781 Fixed issue where tiles are not loaded if HTTP_X_FORWARDED_PROTO is
unset.
2017-04-06 10:27:04 -04:00
Dalibor Janák
5f314fef28 Fixed bug in condition with X-Forwarded-Proto 2016-12-06 23:18:30 +01:00
Dalibor Janák
758b6a1e4d Fix of X-Forwarded-Proto server variable (issue #92) 2016-12-06 18:10:06 +01:00
Dalibor Janák
d7a4ad03c1 Use https with X-Forwarded-Proto (issue #92) 2016-12-06 17:58:22 +01:00
Dalibor Janák
2ead30dc4a Rename mbtilesPrefix to dataRoot 2016-08-29 19:06:51 +02:00
Mark Furland
7405ec3dc3 Add prefix to mbtiles, return 204 on no tile
This adds a configuration option for a prefix to the mbtiles, so you can
store the tiles in other locations.

It also changes the no tile found 404 to a 204, as the mapbox team will
be doing:
https://github.com/mapbox/mapbox-gl-js/issues/1800#issuecomment-236190808
2016-08-26 11:12:43 -04:00
Petr Pridal
f7613e04a1 Updated default title of the page 2016-05-04 19:19:33 +02:00
Dalibor Janák
e4148733ed Empty tile response for jpg and webp 2016-05-03 23:36:31 +02:00
Dalibor Janák
c28d188e0d Empty tile response for jpg and webp 2016-05-03 23:21:40 +02:00
Dalibor Janák
ef5de0607d Unpack empty png tile PHP 5.2 compatible 2016-05-03 22:48:23 +02:00
Ramūnas Dronga
ac68e90870 Faster and ~70% smaller empty png tile 2016-04-18 21:25:38 +03:00
Dalibor Janák
bb48534fe3 Removing of useless code. 2016-03-21 13:42:53 +01:00
Dalibor Janák
c158bcbe57 Minor warning with some php configurations fixed. 2016-03-21 13:40:33 +01:00
Dalibor Janák
2dfd2fcb5f Max zoom of Mercator TileMatrixSet is affected with max of layers maxzoom (closes #76) 2016-03-21 10:59:29 +01:00
Dalibor Janák
6b4fb0fec7 WMTS url to tiles simplified for fastest tile serving 2016-03-07 14:57:29 +01:00
Dalibor Janák
8f2b068c4f Custom template implementation #31 2016-03-07 14:39:28 +01:00
Dalibor Janák
709ed4ffce Revert "Fix of utfgid detection"
This reverts commit 8f6a2ced68.
2016-03-07 14:00:29 +01:00
Dalibor Janák
7320f426a1 Autodetection fix or warning in router, closes #49 2016-03-04 13:28:05 +01:00
Dalibor Janák
2e36338720 Removed dependency of GlobalMercator class closes #74 2016-03-04 13:20:46 +01:00
Dalibor Janák
70159a5b29 Layer list improved 2016-03-04 12:07:37 +01:00
Dalibor Janák
fdeb010831 Get global vars via getenv 2016-03-01 19:17:46 +01:00
Dalibor Janák
8bbfa1d367 Config from eniviroment if is provided 2016-03-01 15:05:58 +01:00
Dalibor Janák
50630fe1c7 Get config from docker volumes if is provided 2016-03-01 11:57:18 +01:00
Dalibor Janák
8206bcccc7 GD module dependency closes #53 2016-02-29 20:21:13 +01:00
Dalibor Janák
d304b89eb2 Removed unused code 2016-02-29 14:19:09 +01:00
Dalibor Janák
87906da0c5 Correct detection of format closes #67 2016-02-29 14:16:17 +01:00
Dalibor Janák
92ddcb6e66 WMTS / TileJSON for remote tiles #69 2016-02-29 12:16:24 +01:00
Dalibor Janák
e36a7e6a06 Fix of order of origin in geodetic profile 2016-02-26 08:51:47 +01:00
Dalibor Janák
7190e90845 Order of origin coords based on proj4 definition #70 2016-02-25 23:21:40 +01:00
Dalibor Janák
f3f2a995e5 Axis orientaton in wmts #70, bbox fix 2016-02-25 19:23:48 +01:00
Dalibor Janák
8233047097 Fixed bug in WGS84 tilematrixset 2016-02-24 20:18:06 +01:00
Dalibor Janák
46d79107e8 Minor code fixes 2016-02-24 18:55:42 +01:00
Dalibor Janák
a2162eeb99 Computation of matrix size 2016-02-18 16:49:48 +01:00
Dalibor Janák
27fc9a73ca Minor loop fixes 2016-02-18 08:43:49 +01:00
Dalibor Janák
4ff5d95a38 Code formating 2016-02-17 21:29:53 +01:00
Dalibor Janák
6da6b13fed Parse TileMatrixSet 2016-02-17 21:19:16 +01:00
Dalibor Janák
0609b25905 Refactoring of tilematrixsets creation 2016-02-17 20:29:39 +01:00
Dalibor Janák
ce485c6713 Allow to read metadata bounding box also as array 2016-02-17 11:39:16 +01:00
Dalibor Janák
ab7862209a Functions for parsing tilematrixset from json 2016-02-09 14:37:26 +01:00