dever il y a 6 ans
Parent
commit
93c6e9bbc2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/Store/Local.php

+ 1 - 1
lib/Store/Local.php

@@ -32,7 +32,7 @@ class Local extends Core implements Config
 				$file = Dever::load('upload/file-name', array('where_name' => $this->name, 'where_upload' => $this->data['key'], 'rand' => time()));
 			}
 
-			if (!$this->limit) {
+			if (!$this->limit && ($this->ext == '.jpg' || $this->ext == '.gif' || $this->ext == '.png')) {
 				$this->limit = getimagesize($this->output['file']);
 			}