From bf4edf6c887fb97748f5ffa8a3032e072723d963 Mon Sep 17 00:00:00 2001 From: Armin Jacob Date: Thu, 20 Mar 2025 21:38:51 +0100 Subject: [PATCH] fix handling of 0-tiles --- osm-caching-proxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm-caching-proxy.php b/osm-caching-proxy.php index 40ac01c..24c2db0 100644 --- a/osm-caching-proxy.php +++ b/osm-caching-proxy.php @@ -16,7 +16,7 @@ $x = $_GET['x'] ?? ''; $y = $_GET['y'] ?? ''; // If any of the variables are empty or not numeric, terminate the script -if(empty($z) || empty($x) || empty($y) || !is_numeric($z) || !is_numeric($x) || !is_numeric($y) || $z < 0 || $x < 0 || $y < 0) { +if(!isset($z) || !isset($x) || !isset($y) || !is_numeric($z) || !is_numeric($x) || !is_numeric($y) || $z < 0 || $x < 0 || $y < 0) { die; }