tileserver-php
tileserver-php copied to clipboard
Removes trailing query parameters
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