Merge "Make calling wfMangleFlashPolicy configurable"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 19 Nov 2014 20:14:03 +0000 (20:14 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 19 Nov 2014 20:14:03 +0000 (20:14 +0000)
1  2 
includes/DefaultSettings.php

@@@ -1383,7 -1383,7 +1383,7 @@@ $wgDjvuOutputExtension = 'jpg'
  /**
   * Site admin email address.
   *
 - * Defaults to "wikiadmin@{$wgServerName}".
 + * Defaults to "wikiadmin@$wgServerName".
   */
  $wgEmergencyContact = false;
  
   *
   * The address we should use as sender when a user is requesting his password.
   *
 - * Defaults to "apache@{$wgServerName}".
 + * Defaults to "apache@$wgServerName".
   */
  $wgPasswordSender = false;
  
@@@ -3194,6 -3194,14 +3194,14 @@@ $wgShowRollbackEditCount = 10
   */
  $wgEnableCanonicalServerLink = false;
  
+ /**
+  * When OutputHandler is used, mangle any output that contains
+  * <cross-domain-policy>. Without this, an attacker can send their own
+  * cross-domain policy unless it is prevented by the crossdomain.xml file at
+  * the domain root.
+  */
+ $wgMangleFlashPolicy = true;
  /** @} */ # End of output format settings }
  
  /*************************************************************************//**