From 00d33e2e8552f2d519be16f2287cee6f707966fa Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Mon, 29 Jun 2015 21:27:40 +0200 Subject: [PATCH] Enable WebP uploads by default Initially disabled for WMF I33b7de30c746e36539e9af29e9598e6723d030dd Bug: T27397 Change-Id: I9604668b0f7108fe52222d7f76854f9d30e637b0 --- RELEASE-NOTES-1.27 | 1 + includes/DefaultSettings.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27 index d0a5c4e5fe..4275921e6a 100644 --- a/RELEASE-NOTES-1.27 +++ b/RELEASE-NOTES-1.27 @@ -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 diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index e9169384c4..d20b9314aa 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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. -- 2.20.1