Created
April 9, 2021 17:42
-
-
Save ciencia/47a5832e210652d54cbd8246a9cb759e to your computer and use it in GitHub Desktop.
patch MediaWiki core 1.34 T278014 escape message
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/includes/specials/SpecialNewFiles.php b/includes/specials/SpecialNewFiles.php | |
index 2c49e5f..d32313b 100644 | |
--- a/includes/specials/SpecialNewFiles.php | |
+++ b/includes/specials/SpecialNewFiles.php | |
@@ -118,7 +118,7 @@ | |
// mediastatistics-header-office, mediastatistics-header-text, | |
// mediastatistics-header-executable, mediastatistics-header-archive, | |
// mediastatistics-header-3d, | |
- return $this->msg( 'mediastatistics-header-' . strtolower( $type ) )->text(); | |
+ return $this->msg( 'mediastatistics-header-' . strtolower( $type ) )->escaped(); | |
}, $this->mediaTypes ); | |
$mediaTypesOptions = array_combine( $mediaTypesText, $this->mediaTypes ); | |
ksort( $mediaTypesOptions ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment