text substitution is Unicode-aware for twitterstatusfetcher
This commit is contained in:
parent
2d18963b4c
commit
5c98dfd58c
|
@ -759,10 +759,7 @@ class TwitterStatusFetcher extends ParallelizingDaemon
|
||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$text = substr_replace($text,
|
$text = mb_substr($text, 0, $object->indices[0]) . $linkText . mb_substr($text, $object->indices[1]);
|
||||||
$linkText,
|
|
||||||
$object->indices[0],
|
|
||||||
$object->indices[1] - $object->indices[0]);
|
|
||||||
}
|
}
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user