mirror of https://github.com/MISP/MISP
fix: Typos in controllers
parent
e86b161d93
commit
14feb57e2f
|
@ -2246,7 +2246,7 @@ class AttributesController extends AppController
|
|||
$data = $this->request->data;
|
||||
}
|
||||
if (empty($data)) {
|
||||
throw new BadRequestException(__('Either specify the search terms in the url, or POST a json array / xml (with the root element being "request" and specify the correct headers based on content type.'));
|
||||
throw new BadRequestException(__('Either specify the search terms in the url, or POST a json array / xml (with the root element being "request" and specify the correct headers based on content type).'));
|
||||
}
|
||||
$paramArray = array('eventId', 'tags', 'from', 'to', 'policy', 'walled_garden', 'ns', 'email', 'serial', 'refresh', 'retry', 'expiry', 'minimum_ttl', 'ttl', 'enforceWarninglist', 'ns_alt');
|
||||
foreach ($paramArray as $p) {
|
||||
|
|
|
@ -3947,7 +3947,7 @@ class EventsController extends AppController
|
|||
}
|
||||
if ($this->request->is('post')) {
|
||||
if (empty($this->request->data)) {
|
||||
throw new BadRequestException(__('Either specify the search terms in the url, or POST an xml (with the root element being "request".'));
|
||||
throw new BadRequestException(__('Either specify the search terms in the url, or POST an xml (with the root element being "request").'));
|
||||
} else {
|
||||
$data = $this->request->data;
|
||||
}
|
||||
|
|
|
@ -433,7 +433,7 @@ class FeedsController extends AppController
|
|||
$this->redirect(array('action' => 'index'));
|
||||
}
|
||||
}
|
||||
$message = __('Fetching the feed has successfuly completed.');
|
||||
$message = __('Fetching the feed has successfully completed.');
|
||||
if ($this->Feed->data['Feed']['source_format'] == 'misp') {
|
||||
if (isset($result['add'])) {
|
||||
$message .= ' Downloaded ' . count($result['add']) . ' new event(s).';
|
||||
|
|
Loading…
Reference in New Issue