From: Brad Jorsch Date: Thu, 25 Feb 2016 21:54:06 +0000 (-0500) Subject: Enforce load.php's no-session constraint X-Git-Tag: 1.31.0-rc.0~7091^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=40accc9733a0998610d856874d84c8aec6f64c82;p=lhc%2Fweb%2Fwiklou.git Enforce load.php's no-session constraint Attempts to use session data via this endpoint will now cause exceptions to be thrown. Bug: T127233 Change-Id: Id83eda9564314bb4e11368aa395127f349b2cff4 --- diff --git a/load.php b/load.php index 2b97f7aa2a..c832237059 100644 --- a/load.php +++ b/load.php @@ -25,9 +25,8 @@ 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' ); +// details of the session. Enforce this constraint with respect to session use. +define( 'MW_NO_SESSION', 1 ); require __DIR__ . '/includes/WebStart.php';