X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDefaultSettings.php;h=7d0f108c7c2a832d768b123e43e0607ae17d00a7;hb=466085b74b4071783a2a9663caac8744134de207;hp=31b0988b696b8905c4de4a05c6121bd6f6fd6435;hpb=7665ec56c75d96ac6b300635f5875ae495b41af8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 31b0988b69..7d0f108c7c 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -940,7 +940,7 @@ $wgFileBlacklist = [ # HTML may contain cookie-stealing JavaScript and web bugs 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht', # PHP scripts may execute arbitrary code on the server - 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', + 'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar', # Other types that may be interpreted by some servers 'shtml', 'jhtml', 'pl', 'py', 'cgi', # May contain harmful executables for Windows victims @@ -1234,7 +1234,7 @@ $wgAllowTitlesInSVG = false; * * @since 1.33 */ -$wgMediaInTargetLanguage = false; +$wgMediaInTargetLanguage = true; /** * The maximum number of pixels a source image can have if it is to be scaled @@ -2456,23 +2456,20 @@ $wgMainWANCache = false; * * The format is an associative array where the key is a cache identifier, and * the value is an associative array of parameters. The "cacheId" parameter is - * a cache identifier from $wgObjectCaches. The "channels" parameter is a map of - * actions ('purge') to PubSub channels defined in $wgEventRelayerConfig. - * The "loggroup" parameter controls where log events are sent. + * a cache identifier from $wgObjectCaches. The "loggroup" parameter controls + * where log events are sent. * * @since 1.26 */ $wgWANObjectCaches = [ CACHE_NONE => [ 'class' => WANObjectCache::class, - 'cacheId' => CACHE_NONE, - 'channels' => [] + 'cacheId' => CACHE_NONE ] /* Example of a simple single data-center cache: 'memcached-php' => [ 'class' => WANObjectCache::class, - 'cacheId' => 'memcached-php', - 'channels' => [ 'purge' => 'wancache-main-memcached-purge' ] + 'cacheId' => 'memcached-php' ] */ ]; @@ -2512,21 +2509,11 @@ $wgMainStash = 'db-replicated'; */ $wgParserCacheExpireTime = 86400; -/** - * @deprecated since 1.27, session data is always stored in object cache. - */ -$wgSessionsInObjectCache = true; - /** * The expiry time to use for session storage, in seconds. */ $wgObjectCacheSessionExpiry = 3600; -/** - * @deprecated since 1.27, MediaWiki\Session\SessionManager doesn't use PHP session storage. - */ -$wgSessionHandler = null; - /** * Whether to use PHP session handling ($_SESSION and session_*() functions) * @@ -4493,6 +4480,13 @@ $wgCentralIdLookupProvider = 'local'; * 100,000 commonly used passwords. Due to the size of the list this * is a probabilistic test. * + * If you add custom checks, for Special:PasswordPolicies to display them correctly, + * every check should have a corresponding passwordpolicies-policy- message, + * and every settings field other than 'value' should have a corresponding + * passwordpolicies-policyflag- message ( and are in lowercase). + * The check message receives the policy value as a parameter, the flag message + * receives the flag value (or values if it's an array). + * * @since 1.26 * @see PasswordPolicyChecks * @see User::checkPasswordValidity() @@ -4795,6 +4789,24 @@ $wgPasswordConfig = [ 'cost' => '30000', 'length' => '64', ], + 'argon2' => [ + 'class' => Argon2Password::class, + + // Algorithm used: + // * 'argon2i' is optimized against side-channel attacks (PHP 7.2+) + // * 'argon2id' is optimized against both side-channel and GPU cracking (PHP 7.3+) + // * 'auto' to use best available algorithm. If you're using more than one server, be + // careful when you're mixing PHP versions because newer PHP might generate hashes that + // older versions might would not understand. + 'algo' => 'auto', + + // The parameters below are the same as options accepted by password_hash(). + // Set them to override that function's defaults. + // + // 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST, + // 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST, + // 'threads' => PASSWORD_ARGON2_DEFAULT_THREADS, + ], ]; /** @@ -6446,7 +6458,7 @@ $wgStatsdServer = false; /** * Prefix for metric names sent to $wgStatsdServer. * - * @see MediaWikiServices::getStatsdDataFactory + * @see MediaWikiServices::getInstance()->getStatsdDataFactory * @see BufferingStatsdDataFactory * @since 1.25 */ @@ -7459,13 +7471,6 @@ $wgAutoloadAttemptLowercase = true; */ $wgExtensionCredits = []; -/** - * Authentication plugin. - * @var $wgAuth AuthPlugin - * @deprecated since 1.27 use $wgAuthManagerConfig instead - */ -$wgAuth = null; - /** * Global list of hooks. * @@ -7921,6 +7926,7 @@ $wgActionFilteredLogs = [ 'upload' => [ 'upload' => [ 'upload' ], 'overwrite' => [ 'overwrite' ], + 'revert' => [ 'revert' ], ], ]; @@ -8964,13 +8970,6 @@ $wgExperiencedUserMemberSince = 30; # days */ $wgInterwikiPrefixDisplayTypes = []; -/** - * Comment table schema migration stage. - * @since 1.30 - * @var int One of the MIGRATION_* constants - */ -$wgCommentTableSchemaMigrationStage = MIGRATION_NEW; - /** * RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables). * Use the SCHEMA_COMPAT_XXX flags. Supported values: @@ -9039,6 +9038,24 @@ $wgEnableRollbackConfirmationPrompt = true; */ $wgEnableBlockNoticeStats = false; +/** + * Origin Trials tokens. + * + * @since 1.34 + * @var array + */ +$wgOriginTrials = []; + +/** + * Enable client-side Priority Hints. + * + * @warning EXPERIMENTAL! + * + * @since 1.34 + * @var bool + */ +$wgPriorityHints = false; + /** * For really cool vim folding this needs to be at the end: * vim: foldmarker=@{,@} foldmethod=marker