summaryrefslogtreecommitdiffstats
path: root/frontends/php/map.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/map.php')
-rw-r--r--frontends/php/map.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/map.php b/frontends/php/map.php
index c3049e1b..8b10e07e 100644
--- a/frontends/php/map.php
+++ b/frontends/php/map.php
@@ -86,7 +86,7 @@
# ImageFilledRectangle($im,0,0,$width,$height,$black);
if($background!="")
{
- $sql="select image from images where imagetype=2 and name='$background'";
+ $sql="select image from images where imagetype=2 and name='".zbx_ads($background)."'";
$result2=DBselect($sql);
if(DBnum_rows($result2)==1)
{
@@ -286,7 +286,7 @@
$icons[$icon]=ImageCreateFromPNG("images/sysmaps/old/$icon.png");
}
*/
- $sql="select image from images where imagetype=1 and name='$icon'";
+ $sql="select image from images where imagetype=1 and name='".zbx_ads($icon)."'";
$result2=DBselect($sql);
if(DBnum_rows($result2)!=1)
{