mirror of https://github.com/MISP/MISP
Reverted change in proposal file storage path that wasn't needed
parent
fa55f7fa9d
commit
6fa27d659a
|
@ -1 +1 @@
|
|||
{"major":2, "minor":3, "hotfix":144}
|
||||
{"major":2, "minor":3, "hotfix":145}
|
|
@ -438,7 +438,7 @@ class ShadowAttributesController extends AppController {
|
|||
}
|
||||
|
||||
private function __downloadAttachment($shadowAttribute) {
|
||||
$path = "files" . DS . $shadowAttribute['event_id'] . DS . 'shadow' . DS;
|
||||
$path = "files" . DS . 'shadow' . DS . $shadowAttribute['event_id'] . DS;
|
||||
$file = $shadowAttribute['id'];
|
||||
$filename = '';
|
||||
if ('attachment' == $shadowAttribute['type']) {
|
||||
|
|
|
@ -438,7 +438,7 @@ class ShadowAttribute extends AppModel {
|
|||
}
|
||||
|
||||
public function saveBase64EncodedAttachment($attribute) {
|
||||
$rootDir = APP . DS . "files" . DS . $attribute['event_id'] . DS . 'shadow';
|
||||
$rootDir = APP . DS . "files" . DS . 'shadow' . DS . $attribute['event_id'];
|
||||
$dir = new Folder($rootDir, true); // create directory structure
|
||||
$destpath = $rootDir . DS . $attribute['id'];
|
||||
$file = new File ($destpath, true); // create the file
|
||||
|
|
Loading…
Reference in New Issue