relative attachment not fetched due to os filename issue
This commit is contained in:
parent
1874346c46
commit
cf0bff8582
@ -37,6 +37,9 @@ function attach_init(&$a) {
|
||||
header('Content-disposition: attachment; filename="' . $r['data']['filename'] . '"');
|
||||
if(intval($r['data']['os_storage'])) {
|
||||
$fname = dbunescbin($r['data']['data']);
|
||||
if(strpos($fname,'store') !== false)
|
||||
$istream = fopen($fname,'rb');
|
||||
else
|
||||
$istream = fopen('store/' . $c[0]['channel_address'] . '/' . $fname,'rb');
|
||||
$ostream = fopen('php://output','wb');
|
||||
if($istream && $ostream) {
|
||||
|
@ -1 +1 @@
|
||||
2015-11-06.1208
|
||||
2015-11-08.1210
|
||||
|
Reference in New Issue
Block a user