summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-06 01:05:30 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-06 01:05:30 -0500
commitde4ed67b7a406189cfd4120f3ef158abc966f48d (patch)
tree46cee5b09880a0fa9041e22c755b4148fc23aa90 /lib/util.php
parent383e6c730db5808b961f53bf39868053fca1fc32 (diff)
parente08b7f7205835fcad611e8b059a84c7a250999c7 (diff)
Merge branch '0.7.x' of git://gitorious.org/laconica/sgmurphy-clone into sgmurphy-clone/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 579f964ac..330e5d12d 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);
}