* fix a bug for sendmail no image.

This commit is contained in:
wyd621
2013-12-24 08:15:32 +00:00
parent e053106f76
commit 5a403599f6
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ if($onlybody) $_GET['onlybody'] = 'no';
<?php
if(strpos($testtask->desc, 'src="data/upload'))
{
$testtask->desc = preg_replace('/<img (.*) src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $testtask->desc);
$testtask->desc = preg_replace('/<img (.*)src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $testtask->desc);
}
echo $testtask->desc;
?>