mirror of https://github.com/MISP/MISP
remove obsolete semicolon after closing curly bracket
parent
5e4f09352d
commit
81d197ed16
|
@ -1132,7 +1132,7 @@ class Attribute extends AppModel {
|
|||
exec("zip -j -P infected " . $zipfile->path . ' \'' . addslashes($fileInZip->path) . '\'', $execOutput, $execRetval);
|
||||
if ($execRetval != 0) { // not EXIT_SUCCESS
|
||||
// TODO: error handling
|
||||
};
|
||||
}
|
||||
$fileInZip->delete(); // delete the original non-zipped-file
|
||||
rename($zipfile->path, $file->path); // rename the .zip to .nothing
|
||||
} else {
|
||||
|
|
|
@ -347,7 +347,7 @@ class Event extends AppModel {
|
|||
if (!$this->destroyDir($dir . DS . $file)) {
|
||||
chmod($dir . DS . $file, 0777);
|
||||
if (!$this->destroyDir($dir . DS . $file)) return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
return rmdir($dir);
|
||||
}
|
||||
|
|
|
@ -456,7 +456,7 @@ class ShadowAttribute extends AppModel {
|
|||
exec("zip -j -P infected " . $zipfile->path . ' \'' . addslashes($fileInZip->path) . '\'', $execOutput, $execRetval);
|
||||
if ($execRetval != 0) { // not EXIT_SUCCESS
|
||||
// TODO: error-handling
|
||||
};
|
||||
}
|
||||
$fileInZip->delete(); // delete the original non-zipped-file
|
||||
rename($zipfile->path, $file->path); // rename the .zip to .nothing
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue