* fix bug#371.

This commit is contained in:
zhujinyong
2012-12-05 00:37:07 +00:00
parent 399f5cbe76
commit e900722d23

View File

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