From: Derk-Jan Hartman Date: Mon, 29 Jun 2015 19:27:40 +0000 (+0200) Subject: Enable WebP uploads by default X-Git-Tag: 1.31.0-rc.0~9156 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=00d33e2e8552f2d519be16f2287cee6f707966fa;p=lhc%2Fweb%2Fwiklou.git Enable WebP uploads by default Initially disabled for WMF I33b7de30c746e36539e9af29e9598e6723d030dd Bug: T27397 Change-Id: I9604668b0f7108fe52222d7f76854f9d30e637b0 --- 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.