summaryrefslogtreecommitdiffstats
path: root/phpfspot_img.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot_img.php')
-rw-r--r--phpfspot_img.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpfspot_img.php b/phpfspot_img.php
index 69f579b..c21ff59 100644
--- a/phpfspot_img.php
+++ b/phpfspot_img.php
@@ -51,6 +51,11 @@ class PHPFSPOT_IMG {
$tmp = getimagesize($fullpath);
$mime = $tmp['mime'];
+ if(!$this->parent->checkifImageSupported($mime)) {
+ $this->parent->showTextImage("Unsupported Image Type");
+ return;
+ }
+
Header("Content-Type: ". $mime);
Header("Content-Length: ". filesize($fullpath));
Header("Content-Transfer-Encoding: binary\n");