test w & h against max sizes in parseOjwParams()

This commit is contained in:
b_b 2015-10-17 10:40:52 +02:00
parent 8dab3826c3
commit bd1e6c5c0e

View File

@ -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']);