Warn on session access in profileinfo.php and opensearch_desc.php
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 5 May 2016 15:35:10 +0000 (11:35 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 5 May 2016 15:35:10 +0000 (11:35 -0400)
These are so simple there will probably be no problems, but let's set
them to 'warn' for a week just to be sure.

Bug: T127233
Change-Id: I04007faaf541f30dcaf2085fa86b45bea1ecb754

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;