* [ADD] Added mime type file checking instead of extension. Thanks to @vmario89 for the feedback. Related #825

* [MOD] Improved exception handling in controllers

Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
nuxsmin
2018-11-10 21:41:07 +01:00
parent a159569e74
commit ed956eec54
53 changed files with 924 additions and 179 deletions

View File

@@ -86,10 +86,7 @@ final class ConfigImportController extends SimpleControllerBase
} catch (\Exception $e) {
processException($e);
$this->eventDispatcher->notifyEvent('exception',
new Event($e, EventMessage::factory()
->addDescription($e->getMessage()))
);
$this->eventDispatcher->notifyEvent('exception', new Event($e));
return $this->returnJsonResponseException($e);
}