Fixes issue with file attachments not being downloadable for users of another org

pull/306/merge
iglocska 2014-11-05 16:25:17 +01:00
parent 143e6b500c
commit 4e116a8afe
2 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
{"major":2, "minor":3, "hotfix":22}
{"major":2, "minor":3, "hotfix":23}

View File

@ -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], '\\'));