From 6c28e6626b533668322311eb3294d0af6be063be Mon Sep 17 00:00:00 2001 From: Christian Haschek Date: Sun, 23 Jan 2022 12:40:53 +0100 Subject: [PATCH] realpath can't work here that's why attachments are failing. fixes #36 --- web/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api.php b/web/api.php index 279622b..0ca9c69 100644 --- a/web/api.php +++ b/web/api.php @@ -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');