Commit 5c98dfd5 authored by Evan Prodromou's avatar Evan Prodromou

text substitution is Unicode-aware for twitterstatusfetcher

parent 2d18963b
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment