layout improvement in attribute display

pull/61/head
Christophe Vandeplas 2012-05-21 13:34:53 +02:00
parent 9462902d97
commit 04ffe374a1
1 changed files with 2 additions and 1 deletions

View File

@ -109,7 +109,8 @@
<td><?php
$sig_display = nl2br(Sanitize::html($attribute['value']));
if('attachment' == $attribute['type'] ||
'malware-sample' == $attribute['type']) {
'malware-sample' == $attribute['type'] ||
strpos('|', $attribute['type']) === false) {
$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];