* fix bug#371.

This commit is contained in:
zhujinyong
2012-12-05 00:41:28 +00:00
parent af5b62a922
commit 83efbed6f5
+2 -1
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;
?>