From bd1e6c5c0e289e8d00a5f71643e198de8d2032d4 Mon Sep 17 00:00:00 2001 From: b_b Date: Sat, 17 Oct 2015 10:40:52 +0200 Subject: [PATCH] test w & h against max sizes in parseOjwParams() --- staticmap.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/staticmap.php b/staticmap.php index a139984..3d6149f 100644 --- a/staticmap.php +++ b/staticmap.php @@ -153,7 +153,10 @@ Class staticMapLite $this->zoom = intval($_GET['z']); $this->width = intval($_GET['w']); + if ($this->width > $this->maxWidth) $this->width = $this->maxWidth; $this->height = intval($_GET['h']); + if ($this->height > $this->maxHeight) $this->height = $this->maxHeight; + if (!empty($_GET['mlat0'])) { $markerLat = floatval($_GET['mlat0']);