summaryrefslogtreecommitdiffstats
path: root/frontends/php/image.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-09 13:38:49 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-09 13:38:49 +0000
commit600d1fa907d54c247ab2fdb38573c4503aeffc8a (patch)
tree2a19f8ce66f3eb4874763a39e73b4fb6ee6bca3b /frontends/php/image.php
parentaa379c6f18a008a13b3daef3770177da0198ae80 (diff)
downloadzabbix-600d1fa907d54c247ab2fdb38573c4503aeffc8a.tar.gz
zabbix-600d1fa907d54c247ab2fdb38573c4503aeffc8a.tar.xz
zabbix-600d1fa907d54c247ab2fdb38573c4503aeffc8a.zip
- increased maximal size of images (Eugene)
- improoved validation - more git-svn-id: svn://svn.zabbix.com/trunk@4109 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/image.php')
-rw-r--r--frontends/php/image.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/php/image.php b/frontends/php/image.php
index 3717c86f..e6a9d4b1 100644
--- a/frontends/php/image.php
+++ b/frontends/php/image.php
@@ -57,6 +57,8 @@ include_once "include/page_header.php";
$source = ImageCreateFromString($row["image"]);
+ unset($row);
+
if($resize == 1)
{
$src_width = imagesx($source);
@@ -98,11 +100,12 @@ include_once "include/page_header.php";
$th_width, $th_height,
$src_width, $src_height);
+ imagedestroy($source);
+
$source = $thumb;
}
}
ImageOut($source);
- ImageDestroy($source);
?>
<?php