mirror of https://github.com/MISP/MISP
chg: [viewPicture] Added comments
parent
303b584c56
commit
dec3fd8808
|
@ -1684,7 +1684,6 @@ class Attribute extends AppModel
|
|||
} else {
|
||||
$data = $this->getAttachment($attribute['Attribute']);
|
||||
if ($extension == 'gif') {
|
||||
// $image_data = base64_decode($data);
|
||||
$image_data = $data;
|
||||
} else {
|
||||
$image = ImageCreateFromString($data);
|
||||
|
@ -1698,7 +1697,7 @@ class Attribute extends AppModel
|
|||
imagedestroy($image);
|
||||
imagedestroy($imageTC);
|
||||
}
|
||||
// save thumbnail
|
||||
// save thumbnail for later reuse
|
||||
$attribute['Attribute']['data'] = $image_data;
|
||||
$this->saveAttachment($attribute['Attribute'], '_thumbnail');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue