// ignore strictly numeric tags like #1
if((strpos($mtch,'#') === 0) && ctype_digit(substr($mtch,1)))
continue;
+ // try not to catch url fragments
+ if(strpos($s,$mtch) && preg_match('/[a-zA-z0-9\/]/',substr($s,strpos($s,$mtch)-1,1)))
+ continue;
$ret[] = $mtch;
}
}
$s .= '<div class="clear"></div></div>';
}
- $arr = explode(',',$item['tag']);
- if(count($arr)) {
- $s .= '<div class="body-tag">';
- foreach($arr as $r) {
- $s .= bbcode($r) . ' ';
- }
- $s .= '</div>';
- }
$prep_arr = array('item' => $item, 'html' => $s);
call_hooks('prepare_body_final', $prep_arr);