Enable WebP uploads by default
authorDerk-Jan Hartman <hartman.wiki@gmail.com>
Mon, 29 Jun 2015 19:27:40 +0000 (21:27 +0200)
committerOri.livneh <ori@wikimedia.org>
Sat, 31 Oct 2015 22:38:32 +0000 (22:38 +0000)
Initially disabled for WMF I33b7de30c746e36539e9af29e9598e6723d030dd

Bug: T27397
Change-Id: I9604668b0f7108fe52222d7f76854f9d30e637b0

RELEASE-NOTES-1.27
includes/DefaultSettings.php

index d0a5c4e..4275921 100644 (file)
@@ -45,6 +45,7 @@ production.
    creation of passwordless "system" users for logged actions.
 * $wgMaxSquidPurgeTitles was removed.
 * $wgAjaxWatch was removed. This is now enabled by default.
+* (T27397) WebP is enabled by default as an uploadable filetype
 
 === New features in 1.27 ===
 * $wgDataCenterId and $wgDataCenterRoles where added, which will serve as
index e916938..d20b931 100644 (file)
@@ -805,7 +805,7 @@ $wgRepositoryBaseUrl = "https://commons.wikimedia.org/wiki/File:";
  * such as odt or doc, and untrusted users are allowed to upload files, then
  * your wiki will be vulnerable to cross-site request forgery (CSRF).
  */
-$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
+$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'webp' );
 
 /**
  * Files with these extensions will never be allowed as uploads.