mirror of https://github.com/MISP/MISP
Fixes issue with file attachments not being downloadable for users of another org
parent
143e6b500c
commit
4e116a8afe
|
@ -1 +1 @@
|
|||
{"major":2, "minor":3, "hotfix":22}
|
||||
{"major":2, "minor":3, "hotfix":23}
|
|
@ -89,7 +89,6 @@
|
|||
</tr>
|
||||
<?php
|
||||
foreach($eventArray as $k => $object):
|
||||
|
||||
$extra = '';
|
||||
$extra2 = '';
|
||||
$extra3 = '';
|
||||
|
@ -151,7 +150,7 @@
|
|||
endif;
|
||||
$sigDisplay = $object['value'];
|
||||
if ('attachment' == $object['type'] || 'malware-sample' == $object['type'] ) {
|
||||
$t = ($currentType == 'Attribute' ? 'attributes' : 'shadow_attributes');
|
||||
$t = ($object['type'] == 0 ? 'attributes' : 'shadow_attributes');
|
||||
$filenameHash = explode('|', nl2br(h($object['value'])));
|
||||
if (strrpos($filenameHash[0], '\\')) {
|
||||
$filepath = substr($filenameHash[0], 0, strrpos($filenameHash[0], '\\'));
|
||||
|
|
Loading…
Reference in New Issue