realpath can't work here that's why attachments are failing. fixes #36

This commit is contained in:
Christian Haschek 2022-01-23 12:40:53 +01:00
parent 07b269576c
commit 6c28e6626b

View file

@ -54,7 +54,7 @@ switch($action)
break;
case 'attachment':
$id = intval($_REQUEST['id']);
$filename = basename(realpath($_REQUEST['filename']));
$filename = basename($_REQUEST['filename']);
$filepath = $dir.DS.'attachments'.DS.$id.'-'.$filename;
if(!is_dir($dir))
$o = array('status'=>'err','reason'=>'No emails received on this address');