diff --git a/app/Controller/FeedsController.php b/app/Controller/FeedsController.php index 07cc00d98..94f64bb93 100644 --- a/app/Controller/FeedsController.php +++ b/app/Controller/FeedsController.php @@ -317,6 +317,7 @@ class FeedsController extends AppController $this->set(compact('dropdownData')); $this->set('defaultPullRules', json_encode(Feed::DEFAULT_FEED_PULL_RULES)); $this->set('menuData', array('menuList' => 'feeds', 'menuItem' => 'add')); + $this->set('pull_scope', 'feed'); } private function __checkRegex($pattern) @@ -472,6 +473,7 @@ class FeedsController extends AppController if(!empty($this->request->data['Feed']['rules'])){ $this->request->data['Feed']['pull_rules'] = $this->request->data['Feed']['rules']; } + $this->set('pull_scope', 'feed'); $this->render('add'); } diff --git a/app/Controller/ServersController.php b/app/Controller/ServersController.php index 8520b17fd..9c2c1ba87 100644 --- a/app/Controller/ServersController.php +++ b/app/Controller/ServersController.php @@ -455,6 +455,7 @@ class ServersController extends AppController $this->set('allTags', $this->__getTags()); $this->set('host_org_id', Configure::read('MISP.host_org_id')); + $this->set('pull_scope', 'server'); $this->render('edit'); } } @@ -649,6 +650,7 @@ class ServersController extends AppController $this->set('server', $s); $this->set('id', $id); $this->set('host_org_id', Configure::read('MISP.host_org_id')); + $this->set('pull_scope', 'server'); } } diff --git a/app/Model/Feed.php b/app/Model/Feed.php index ff4911910..8fb85b821 100644 --- a/app/Model/Feed.php +++ b/app/Model/Feed.php @@ -782,7 +782,7 @@ class Feed extends AppModel } } $url_params = !empty($filterRules['url_params']) ? $filterRules['url_params'] : []; - if (!$this->passesURLParamFilters($url_params, $event)) { + if (!$this->passesURLParamFilters($url_params, $event['Event'])) { return false; } return true; diff --git a/app/View/Elements/serverRuleElements/pull.ctp b/app/View/Elements/serverRuleElements/pull.ctp index cde8ec236..405a6b074 100755 --- a/app/View/Elements/serverRuleElements/pull.ctp +++ b/app/View/Elements/serverRuleElements/pull.ctp @@ -81,7 +81,7 @@ element('serverRuleElements/rules_filtering_type', [ 'technique' => 'pull', 'allowEmptyOptions' => true, @@ -115,7 +115,7 @@ echo $this->element('genericElements/assetLoader', array(