* adjust for get image in mail.

This commit is contained in:
wangyidong
2014-10-21 05:20:58 +00:00
parent 0a493b7eb8
commit 51f65c74fc
+1 -1
View File
@@ -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('/<img (.*)src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $body);
if(strpos($body, 'src="data/upload')) $body = preg_replace('/<img (.*)src="data/upload', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot . 'data/upload', $body);
try
{