Fixed remaining substr_replace with multibyte equivalent.

This commit is contained in:
Sean Murphy 2009-02-09 19:15:30 -05:00
parent bdd9f6ce1d
commit cf29ef2bc4
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ function common_replace_urls_callback($text, $callback) {
// If the first part wasn't cap'd but the last part was, we captured too much
if ((!$prev_part && $last_part)) {
$url = substr_replace($url, '', mb_strpos($url, '.'.$url_parts[2], 0));
$url = mb_substr($url, 0 , mb_strpos($url, '.'.$url_parts['2'], 0));
}
// Capture the new TLD