Permalink
Browse files

fix target

  • Loading branch information...
1 parent e6c3a0a commit 6c8371622ff13eecb3d782df286bdf2ad4c2b172 @cgeek committed Dec 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 application/controllers/home.php
@@ -50,7 +50,7 @@ private function _process_content($content) {
$reg2 = '/#[\w\W]+#/i';
preg_match('/#([\w\W]+)#/',$content,$matches);
if ( ! empty($matches[1])) {
- $content = preg_replace($reg2,'<a href="http://s.weibo.com/weibo/'.$matches[1] .'">'.$matches[1].' : </a>',$content);
+ $content = preg_replace($reg2,'<a target="_blank" href="http://s.weibo.com/weibo/'.$matches[1] .'">'.$matches[1].' : </a>',$content);
}
return $content;
}

0 comments on commit 6c83716

Please sign in to comment.