maptiler / tileserver-php

MBTiles and MapTiler folder hosting with TileJSON, OGC WMTS, UTFGrid interaction and web interface. QGIS & ESRI ArcGIS compatible. Runs on any Apache+PHP webhosting. MapBox Studio Vector Tiles hosting.
http://tileserver.maptiler.com/
564 stars 164 forks source link

Removes trailing query parameters #122

Open ibesora opened 6 years ago

ibesora commented 6 years ago

When tiles are requested with a query parameter (to avoid their caching by the browser for example) tileserver.php answers with an empty image. This PR removes all the query parameters from the first & to the end of the request URI so it works as expected.

Example: Browser request: tileserver.php?/normalmap/15/16540/12182.png&20180306135412 Request URI used by tileserver: tileserver.php?/normalmap/15/16540/12182.png