fix(components): 🐛 escape the contents of MediaWiki:Tagline

Co-authored-by: BlankEclair <blankeclair@waifu.club>
This commit is contained in:
alistair3149 2024-06-01 14:50:46 -04:00
parent c11fbf67a9
commit 4a43280242
No known key found for this signature in database

View file

@ -191,13 +191,13 @@ class CitizenComponentPageHeading implements CitizenComponent {
$tagline = $localizer->msg( 'citizen-tagline' )->parse(); $tagline = $localizer->msg( 'citizen-tagline' )->parse();
} else { } else {
// Fallback to site tagline // Fallback to site tagline
$tagline = $localizer->msg( 'tagline' )->text(); $tagline = $localizer->msg( 'tagline' )->parse();
} }
} }
} elseif ( !$localizer->msg( 'citizen-tagline' )->isDisabled() ) { } elseif ( !$localizer->msg( 'citizen-tagline' )->isDisabled() ) {
$tagline = $localizer->msg( 'citizen-tagline' )->parse(); $tagline = $localizer->msg( 'citizen-tagline' )->parse();
} else { } else {
$tagline = $localizer->msg( 'tagline' )->text(); $tagline = $localizer->msg( 'tagline' )->parse();
} }
} }
} }