Skip to content

Instantly share code, notes, and snippets.

@ciencia
Created April 9, 2021 17:42
Show Gist options
  • Save ciencia/47a5832e210652d54cbd8246a9cb759e to your computer and use it in GitHub Desktop.
Save ciencia/47a5832e210652d54cbd8246a9cb759e to your computer and use it in GitHub Desktop.
patch MediaWiki core 1.34 T278014 escape message
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