From: Sean Murphy Date: Tue, 10 Feb 2009 00:15:30 +0000 (-0500) Subject: Fixed remaining substr_replace with multibyte equivalent. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf29ef2bc484c1d9719e852d1d3b6eeaff74e094;p=quix0rs-gnu-social.git Fixed remaining substr_replace with multibyte equivalent. --- diff --git a/lib/util.php b/lib/util.php index be92f422fb..75d1e21a47 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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