catch a couple of edge cases with the tag linkifier

This commit is contained in:
Mike Macgirvin 2010-10-28 20:11:50 -07:00
commit 6301de1032
2 changed files with 12 additions and 2 deletions

View file

@ -147,10 +147,10 @@ function item_post(&$a) {
}
}
if($profile) {
$profile = str_replace(',','%2c',$profile);
$body = str_replace($name,'[url=' . $profile . ']' . $name . '[/url]', $body);
if(strlen($str_tags))
$str_tags .= ',';
$profile = str_replace(',','%2c',$profile);
$str_tags .= '[url=' . $profile . ']' . $name . '[/url]';
}
}