mirror of https://github.com/MISP/MISP
chg: replace 2 spaces after tab by double tab
parent
4b8a82098d
commit
1fcefa202c
|
@ -558,21 +558,21 @@ class EventsController extends AppController {
|
|||
}
|
||||
|
||||
if (!$this->Event->User->getPGP($this->Auth->user('id')) && Configure::read('GnuPG.onlyencrypted')) {
|
||||
// No GPG
|
||||
if (Configure::read('SMIME.enabled') && !$this->Event->User->getCertificate($this->Auth->user('id'))) {
|
||||
// No GPG and No SMIME
|
||||
$this->Session->setFlash(__('No x509 certificate or GPG key set in your profile. To receive emails, submit your public certificate or GPG key in your profile.'));
|
||||
} else if (!Configure::read('SMIME.enabled')) {
|
||||
$this->Session->setFlash(__('No GPG key set in your profile. To receive emails, submit your public key in your profile.'));
|
||||
}
|
||||
// No GPG
|
||||
if (Configure::read('SMIME.enabled') && !$this->Event->User->getCertificate($this->Auth->user('id'))) {
|
||||
// No GPG and No SMIME
|
||||
$this->Session->setFlash(__('No x509 certificate or GPG key set in your profile. To receive emails, submit your public certificate or GPG key in your profile.'));
|
||||
} else if (!Configure::read('SMIME.enabled')) {
|
||||
$this->Session->setFlash(__('No GPG key set in your profile. To receive emails, submit your public key in your profile.'));
|
||||
}
|
||||
} else if ($this->Auth->user('autoalert') && !$this->Event->User->getPGP($this->Auth->user('id')) && Configure::read('GnuPG.bodyonlyencrypted')) {
|
||||
// No GPG & autoalert
|
||||
if ($this->Auth->user('autoalert') && Configure::read('SMIME.enabled') && !$this->Event->User->getCertificate($this->Auth->user('id'))) {
|
||||
// No GPG and No SMIME & autoalert
|
||||
$this->Session->setFlash(__('No x509 certificate or GPG key set in your profile. To receive attributes in emails, submit your public certificate or GPG key in your profile.'));
|
||||
} else if (!Configure::read('SMIME.enabled')) {
|
||||
$this->Session->setFlash(__('No GPG key set in your profile. To receive attributes in emails, submit your public key in your profile.'));
|
||||
}
|
||||
// No GPG & autoalert
|
||||
if ($this->Auth->user('autoalert') && Configure::read('SMIME.enabled') && !$this->Event->User->getCertificate($this->Auth->user('id'))) {
|
||||
// No GPG and No SMIME & autoalert
|
||||
$this->Session->setFlash(__('No x509 certificate or GPG key set in your profile. To receive attributes in emails, submit your public certificate or GPG key in your profile.'));
|
||||
} else if (!Configure::read('SMIME.enabled')) {
|
||||
$this->Session->setFlash(__('No GPG key set in your profile. To receive attributes in emails, submit your public key in your profile.'));
|
||||
}
|
||||
}
|
||||
$this->set('eventDescriptions', $this->Event->fieldDescriptions);
|
||||
$this->set('analysisLevels', $this->Event->analysisLevels);
|
||||
|
|
|
@ -63,7 +63,7 @@ class UrlCacheManager {
|
|||
public static function init(View $View) {
|
||||
$params = $View->request->params;
|
||||
if (Configure::read('UrlCache.pageFiles')) {
|
||||
$cachePageKey = '_misc';
|
||||
$cachePageKey = '_misc';
|
||||
if (is_object($View)) {
|
||||
$path = $View->request->here;
|
||||
if ($path == '/') {
|
||||
|
@ -115,10 +115,10 @@ class UrlCacheManager {
|
|||
public static function get($url, $full) {
|
||||
$keyUrl = $url;
|
||||
if (is_array($keyUrl)) {
|
||||
$keyUrl += self::$extras;
|
||||
# prevent different hashs on different orders
|
||||
ksort($keyUrl, SORT_STRING);
|
||||
# prevent different hashs on different types (int/string/bool)
|
||||
$keyUrl += self::$extras;
|
||||
# prevent different hashs on different orders
|
||||
ksort($keyUrl, SORT_STRING);
|
||||
# prevent different hashs on different types (int/string/bool)
|
||||
foreach ($keyUrl as $key => $val) {
|
||||
$keyUrl[$key] = (String) $val;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue