This commit is contained in:
zhujinyong
2012-12-05 00:38:33 +00:00
parent e900722d23
commit 891c1065ce

View File

@@ -22,9 +22,10 @@
<legend><?php echo $lang->task->legendDesc;?></legend>
<div class='content'>
<?php
if(strpos($task->desc, '<img src="data/upload'))
if(strpos($task->desc, 'src="data/upload'))
{
$task->desc = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
$task->desc = str_replace('<img alt="" src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
}
echo $task->desc;
?>