test w & h against max sizes in parseOjwParams()
This commit is contained in:
parent
8dab3826c3
commit
bd1e6c5c0e
@ -153,7 +153,10 @@ Class staticMapLite
|
|||||||
$this->zoom = intval($_GET['z']);
|
$this->zoom = intval($_GET['z']);
|
||||||
|
|
||||||
$this->width = intval($_GET['w']);
|
$this->width = intval($_GET['w']);
|
||||||
|
if ($this->width > $this->maxWidth) $this->width = $this->maxWidth;
|
||||||
$this->height = intval($_GET['h']);
|
$this->height = intval($_GET['h']);
|
||||||
|
if ($this->height > $this->maxHeight) $this->height = $this->maxHeight;
|
||||||
|
|
||||||
|
|
||||||
if (!empty($_GET['mlat0'])) {
|
if (!empty($_GET['mlat0'])) {
|
||||||
$markerLat = floatval($_GET['mlat0']);
|
$markerLat = floatval($_GET['mlat0']);
|
||||||
|
Loading…
Reference in New Issue
Block a user