Merge "Warn on session access in profileinfo.php and opensearch_desc.php"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 5 May 2016 16:09:56 +0000 (16:09 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 5 May 2016 16:09:56 +0000 (16:09 +0000)
opensearch_desc.php
profileinfo.php

index bef1688..92c182d 100644 (file)
  * @file
  */
 
+// This endpoint is supposed to be independent of request cookies and other
+// details of the session. Log warnings for violations of the no-session
+// constraint.
+define( 'MW_NO_SESSION', 'warn' );
+
 require_once __DIR__ . '/includes/WebStart.php';
 
 if ( $wgRequest->getVal( 'ctype' ) == 'application/xml' ) {
index 9563609..466f26a 100644 (file)
  * @file
  */
 
+// This endpoint is supposed to be independent of request cookies and other
+// details of the session. Log warnings for violations of the no-session
+// constraint.
+define( 'MW_NO_SESSION', 'warn' );
+
 ini_set( 'zlib.output_compression', 'off' );
 
 $wgEnableProfileInfo = false;