X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FDefaultSettings.php;h=163e253fca191f707e216d0d75f978df9cdd54f4;hb=fbe17a7386ff6d917f0488d54808ae2b8ec96d12;hp=d0a02de05bc172f3880cde94ba016fe356f6d55c;hpb=8adb581a6af0c3c39c60642885e7b58df56e7866;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index d0a02de05b..163e253fca 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -316,7 +316,7 @@ $wgAppleTouchIcon = false; /** * Value for the referrer policy meta tag. - * One of the values defined in the Referrer Policy specification: + * One or more of the values defined in the Referrer Policy specification: * https://w3c.github.io/webappsec-referrer-policy/ * ('no-referrer', 'no-referrer-when-downgrade', 'same-origin', * 'origin', 'strict-origin', 'origin-when-cross-origin', @@ -324,8 +324,12 @@ $wgAppleTouchIcon = false; * Setting it to false prevents the meta tag from being output * (which results in falling back to the Referrer-Policy header, * or 'no-referrer-when-downgrade' if that's not set either.) + * Setting it to an array (supported since 1.31) will create a meta tag for + * each value, in the reverse of the order (meaning that the first array element + * will be the default and the others used as fallbacks for browsers which do not + * understand it). * - * @var string|bool + * @var array|string|bool * @since 1.25 */ $wgReferrerPolicy = false;