X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdiff%2FWordAccumulator.php;h=88631ed415acc78274e6a80af14b099d61e6a5cf;hb=cfd378774ec1eff28db481e40d33b56d32121020;hp=a26775ffa80c22d11e620f2c6fecbfb812460bf7;hpb=c9bef3d160724e84b9c876615cceddffadef73bc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/diff/WordAccumulator.php b/includes/diff/WordAccumulator.php index a26775ffa8..88631ed415 100644 --- a/includes/diff/WordAccumulator.php +++ b/includes/diff/WordAccumulator.php @@ -46,11 +46,9 @@ class WordAccumulator { private function flushGroup( $new_tag ) { if ( $this->group !== '' ) { if ( $this->tag == 'ins' ) { - $this->line .= "insClass}>" . - htmlspecialchars( $this->group ) . ''; + $this->line .= "insClass}>" . htmlspecialchars( $this->group ) . ''; } elseif ( $this->tag == 'del' ) { - $this->line .= "delClass}>" . - htmlspecialchars( $this->group ) . ''; + $this->line .= "delClass}>" . htmlspecialchars( $this->group ) . ''; } else { $this->line .= htmlspecialchars( $this->group ); } @@ -91,6 +89,8 @@ class WordAccumulator { $this->flushLine( $tag ); $word = substr( $word, 1 ); } + // FIXME: Don't use assert() + // phpcs:ignore MediaWiki.Usage.ForbiddenFunctions.assert assert( !strstr( $word, "\n" ) ); $this->group .= $word; }