* fix bug#371.

This commit is contained in:
zhujinyong
2012-12-05 00:39:40 +00:00
parent 891c1065ce
commit af5b62a922
+2 -1
View File
@@ -22,9 +22,10 @@
<legend><?php echo $lang->story->legendSpec;?></legend>
<div class='content'>
<?php
if(strpos($story->spec, '<img src="data/upload'))
if(strpos($story->spec, 'src="data/upload'))
{
$story->spec = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $story->spec);
$story->spec = str_replace('<img alt="" src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $story->spec);
}
echo $story->spec;
?>