Merge pull request #4 from brunob/patch-1
test w & h against max sizes in parseOjwParams()
This commit is contained in:
commit
5543615119
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user