aboutsummaryrefslogtreecommitdiffstats
path: root/includes/logging/InterwikiLogFormatter.php
blob: 59d409d124bbc4d7e10e7dba6b222be40ad7f25e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

namespace MediaWiki\Logging;

use MediaWiki\Message\Message;

/**
 * LogFormatter for interwiki/* logs
 *
 * @since 1.44
 */
class InterwikiLogFormatter extends LogFormatter {
	/**
	 * @return array
	 * @suppress SecurityCheck-DoubleEscaped taint-check bug
	 */
	protected function getMessageParameters() {
		$params = parent::getMessageParameters();
		// Needed to pass the URL as a raw parameter, because it contains $1
		if ( isset( $params[4] ) ) {
			$params[4] = Message::rawParam( htmlspecialchars( $params[4] ) );
		}
		return $params;
	}
}

/** @deprecated class alias since 1.44 */
class_alias( InterwikiLogFormatter::class, 'InterwikiLogFormatter' );