From 2567d166741b0fa576e95ae32a9b76518043ad67 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Fri, 6 Sep 2024 09:34:20 +0800 Subject: [PATCH] * [bug#54866,done,1h] File path uses actual path. --- module/mail/model.php | 2 +- module/mail/tao.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/mail/model.php b/module/mail/model.php index 0d04855fab..54440452bc 100644 --- a/module/mail/model.php +++ b/module/mail/model.php @@ -367,7 +367,7 @@ class mailModel extends model { $wwwRoot = $this->app->getWwwRoot(); $images = array_filter(array_unique($images)); - foreach($images as $image) $this->mta->AddEmbeddedImage($wwwRoot . $image, basename($image)); + foreach($images as $image) $this->mta->AddEmbeddedImage($image, basename($image)); } /** diff --git a/module/mail/tao.php b/module/mail/tao.php index 54da249120..3fe89410d9 100644 --- a/module/mail/tao.php +++ b/module/mail/tao.php @@ -112,7 +112,7 @@ class mailTao extends mailModel if(!$file) continue; if(!in_array($file->extension, $this->config->file->imageExtensions)) continue; - $images[$matches[1][$key]] = $file->webPath; + $images[$matches[1][$key]] = $file->realPath; } return $images; }