mirror of https://github.com/MISP/MISP
fix file download missing extension
parent
5e3976b7bc
commit
45cfafca98
|
@ -265,7 +265,7 @@ class AttributesController extends AppController {
|
||||||
$this->viewClass = 'Media';
|
$this->viewClass = 'Media';
|
||||||
$params = array(
|
$params = array(
|
||||||
'id' => $file,
|
'id' => $file,
|
||||||
'name' => $filename,
|
'name' => $filename.".".$fileExt,
|
||||||
'extension' => $fileExt,
|
'extension' => $fileExt,
|
||||||
'download' => true,
|
'download' => true,
|
||||||
'path' => $path
|
'path' => $path
|
||||||
|
@ -419,7 +419,7 @@ class AttributesController extends AppController {
|
||||||
// combobox for distribution
|
// combobox for distribution
|
||||||
$this->set('distributionDescriptions', $this->Attribute->distributionDescriptions);
|
$this->set('distributionDescriptions', $this->Attribute->distributionDescriptions);
|
||||||
$this->set('distributionLevels', $this->Event->distributionLevels);
|
$this->set('distributionLevels', $this->Event->distributionLevels);
|
||||||
$events = $this->Event->findById($eventId);
|
$events = $this->Event->findById($eventId);
|
||||||
$this->set('currentDist', $events['Event']['distribution']);
|
$this->set('currentDist', $events['Event']['distribution']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue