From 51f65c74fc7cf31952739aa5b77d897cc3fa5561 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 21 Oct 2014 05:20:58 +0000 Subject: [PATCH] * adjust for get image in mail. --- module/mail/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/mail/model.php b/module/mail/model.php index 77d6ce94ed..1e9ef94084 100644 --- a/module/mail/model.php +++ b/module/mail/model.php @@ -273,7 +273,7 @@ class mailModel extends model $this->clear(); /* Replace full webPath image for mail. */ - if(strpos($body, 'src="data/upload')) $body = preg_replace('/server->http_host . $this->config->webRoot, $body); + if(strpos($body, 'src="data/upload')) $body = preg_replace('/server->http_host . $this->config->webRoot . 'data/upload', $body); try {