From: Brad Jorsch Date: Thu, 25 Feb 2016 21:54:06 +0000 (-0500) Subject: Log violations of load.php's no-session constraint X-Git-Tag: 1.31.0-rc.0~7725^2 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=8b4c9c1131c7ac101c9da4259a73fe6e6b9bb364;p=lhc%2Fweb%2Fwiklou.git Log violations of load.php's no-session constraint Bug: T127233 Change-Id: I3d9538b36f707ed69c2d163ccf1f807af4b02fc0 --- diff --git a/load.php b/load.php index c6452fb475..d30a34836c 100644 --- a/load.php +++ b/load.php @@ -24,6 +24,11 @@ use MediaWiki\Logger\LoggerFactory; +// 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 __DIR__ . '/includes/WebStart.php'; // URL safety checks