* fix a bug for sendmail no image.
This commit is contained in:
@@ -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;
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user