realpath can't work here that's why attachments are failing. fixes #36
This commit is contained in:
parent
07b269576c
commit
6c28e6626b
|
@ -54,7 +54,7 @@ switch($action)
|
||||||
break;
|
break;
|
||||||
case 'attachment':
|
case 'attachment':
|
||||||
$id = intval($_REQUEST['id']);
|
$id = intval($_REQUEST['id']);
|
||||||
$filename = basename(realpath($_REQUEST['filename']));
|
$filename = basename($_REQUEST['filename']);
|
||||||
$filepath = $dir.DS.'attachments'.DS.$id.'-'.$filename;
|
$filepath = $dir.DS.'attachments'.DS.$id.'-'.$filename;
|
||||||
if(!is_dir($dir))
|
if(!is_dir($dir))
|
||||||
$o = array('status'=>'err','reason'=>'No emails received on this address');
|
$o = array('status'=>'err','reason'=>'No emails received on this address');
|
||||||
|
|
Loading…
Reference in a new issue