summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-09-07 15:54:06 -0400
committerEvan Prodromou <evan@status.net>2010-09-07 15:54:06 -0400
commit5c98dfd58cabe2aa4b64e912f830cfbcd0fcecc1 (patch)
tree170b88c1fa5785b4bdd745fc3eecfd25512d2889 /plugins/TwitterBridge/daemons/twitterstatusfetcher.php
parent2d18963b4c2892ac2adbeb8b98974d63d62bfd1d (diff)
text substitution is Unicode-aware for twitterstatusfetcher
Diffstat (limited to 'plugins/TwitterBridge/daemons/twitterstatusfetcher.php')
-rwxr-xr-xplugins/TwitterBridge/daemons/twitterstatusfetcher.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
index 96a517732..f1305696b 100755
--- a/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
+++ b/plugins/TwitterBridge/daemons/twitterstatusfetcher.php
@@ -759,10 +759,7 @@ class TwitterStatusFetcher extends ParallelizingDaemon
default:
continue;
}
- $text = substr_replace($text,
- $linkText,
- $object->indices[0],
- $object->indices[1] - $object->indices[0]);
+ $text = mb_substr($text, 0, $object->indices[0]) . $linkText . mb_substr($text, $object->indices[1]);
}
return $text;
}