Merge pull request #4 from brunob/patch-1

test w & h against max sizes in parseOjwParams()
This commit is contained in:
dFacts Network 2015-10-17 23:42:57 +02:00
commit 5543615119
1 changed files with 3 additions and 0 deletions

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