summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-06 01:06:54 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-06 01:06:54 -0500
commitc47bfcef652326d04f08a3f57c395961e74da089 (patch)
treedb5d77b91758dd9667430622eadf4911f6966c67 /lib/util.php
parent8775e79e35a2fb343254fdd21b9d6d228cc97a9e (diff)
parentde4ed67b7a406189cfd4120f3ef158abc966f48d (diff)
Merge branch 'sgmurphy-clone/0.7.x' into 0.7.x
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index cbff35a9d..5275ad6b6 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -447,7 +447,7 @@ function common_replace_urls_callback($text, $callback) {
// Replace it!
$start = mb_strpos($text, $url, $offset);
- $text = substr_replace($text, $modified_url, $start, mb_strlen($url));
+ $text = mb_substr($text, 0, $start).$modified_url.mb_substr($text, $start + mb_strlen($url), mb_strlen($text));
$offset = $start + mb_strlen($modified_url);
}