mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-14 18:15:44 +00:00
(bug 30598) Escape html when displaying url in Log
Add htmlspecialchars escaping to the Interwiki url when displaying in the logs. Fixes a potential xss. Change-Id: I3cdf8a4f6c1b1f66a4229c8d9d00c1fc12506dd6
This commit is contained in:
parent
38d7cbb5ec
commit
377a2ba09c
|
@ -338,7 +338,7 @@ class InterwikiLogFormatter extends LogFormatter {
|
|||
protected function getMessageParameters() {
|
||||
$params = parent::getMessageParameters();
|
||||
if ( isset( $params[4] ) ) {
|
||||
$params[4] = Message::rawParam( $params[4] );
|
||||
$params[4] = Message::rawParam( htmlspecialchars( $params[4] ) );
|
||||
}
|
||||
return $params;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue