1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-30 03:47:31 +01:00

Previous commit comment fix

This commit is contained in:
Michael Foster 2013-07-31 03:13:51 -04:00
parent a8918d3bbe
commit a15a37cd4e

View File

@ -1463,7 +1463,7 @@ function markup(&$body, $track_cites = false) {
$query->bindValue(':id', $cite);
$query->execute() or error(db_error($query));
// preg_replace is not multibyte-safe
// preg_match_all is not multibyte-safe
foreach ($matches as &$match) {
$match[1] = mb_strlen(substr($body_tmp, 0, $match[1]));
}
@ -1496,7 +1496,7 @@ function markup(&$body, $track_cites = false) {
$_board = $matches[2][0];
$cite = @$matches[3][0];
// preg_replace is not multibyte-safe
// preg_match_all is not multibyte-safe
foreach ($matches as &$match) {
$match[1] = mb_strlen(substr($body_tmp, 0, $match[1]));
}