mirror of https://github.com/MISP/MISP
Merge branch '2.4' of github.com:MISP/MISP into 2.4
commit
599641672e
|
@ -525,7 +525,7 @@ class AppController extends Controller
|
|||
|
||||
private function __convertEmailToName($email)
|
||||
{
|
||||
$name = explode('@', $email);
|
||||
$name = explode('@', (string)$email);
|
||||
$name = explode('.', $name[0]);
|
||||
foreach ($name as $key => $value) {
|
||||
$name[$key] = ucfirst($value);
|
||||
|
@ -668,7 +668,7 @@ class AppController extends Controller
|
|||
foreach ($options['paramArray'] as $p) {
|
||||
if (
|
||||
isset($options['ordered_url_params'][$p]) &&
|
||||
(!in_array(strtolower($options['ordered_url_params'][$p]), array('null', '0', false, 'false', null)))
|
||||
(!in_array(strtolower((string)$options['ordered_url_params'][$p]), array('null', '0', false, 'false', null)))
|
||||
) {
|
||||
$data[$p] = $options['ordered_url_params'][$p];
|
||||
$data[$p] = str_replace(';', ':', $data[$p]);
|
||||
|
|
|
@ -77,7 +77,7 @@ class EventBlacklistsController extends AppController
|
|||
if ($this->_isRest()) {
|
||||
return $this->RestResponse->saveSuccessResponse('EventBlacklist', 'Deleted', $ids, $this->response->type());
|
||||
} else {
|
||||
$this->Flash->success('Event deleted.');
|
||||
$this->Flash->success('Blacklist entry removed');
|
||||
$this->redirect(array('controller' => 'eventBlacklists', 'action' => 'index'));
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
?>
|
||||
<div class="input clear"></div>
|
||||
<?php
|
||||
echo $this->Form->input('gpgkey', array('label' => __('GnuPG key'), 'div' => 'clear', 'class' => 'input-xxlarge'));
|
||||
echo $this->Form->input('gpgkey', array('label' => __('GnuPG key'), 'div' => 'clear', 'class' => 'input-xxlarge', 'placeholder' => __('Paste the user\'s GnuPG key here or try to retrieve it from the MIT key server by clicking on "Fetch GnuPG key" below.')));
|
||||
?>
|
||||
<div class="clear"><span role="button" tabindex="0" aria-label="<?php echo __('Fetch GnuPG key');?>" onClick="lookupPGPKey('UserEmail');" class="btn btn-inverse" style="margin-bottom:10px;"><?php echo __('Fetch GnuPG key');?></span></div>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue