diff --git a/app/View/Events/view.ctp b/app/View/Events/view.ctp
index 4f34aaff9..25dc10a50 100755
--- a/app/View/Events/view.ctp
+++ b/app/View/Events/view.ctp
@@ -108,12 +108,15 @@
|
Html->link($filename_hash[0], array('controller' => 'attributes', 'action' => 'download', $attribute['id']));
- if (isset($filename_hash[1])) echo ' | '.$filename_hash[1];
+ if('attachment' == $attribute['type'] ||
+ 'malware-sample' == $attribute['type'] ) {
+ $filename_hash = explode('|', Sanitize::html($attribute['value']));
+ echo $this->Html->link($filename_hash[0], array('controller' => 'attributes', 'action' => 'download', $attribute['id']));
+ if (isset($filename_hash[1])) echo ' | '.$filename_hash[1];
+ } elseif (strpos($attribute['type'], '|') !== false) {
+ $filename_hash = explode('|', Sanitize::html($attribute['value']));
+ echo $filename_hash[0];
+ if (isset($filename_hash[1])) echo ' | '.$filename_hash[1];
} elseif ('vulnerability' == $attribute['type']) {
echo $this->Html->link($sig_display, 'http://www.google.com/search?q='.$sig_display, array('target'=> '_blank'));
} else {
|