summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Murphy <sgmurphy@gmail.com>2009-02-09 19:15:30 -0500
committerSean Murphy <sgmurphy@gmail.com>2009-02-09 19:15:30 -0500
commitcf29ef2bc484c1d9719e852d1d3b6eeaff74e094 (patch)
treefe3bf679eceac5eadbd3d1d247ebf1dae6b9fded
parentbdd9f6ce1d9bafc1c534aec224fa0ad1452779c1 (diff)
Fixed remaining substr_replace with multibyte equivalent.
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index be92f422f..75d1e21a4 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