Log violations of load.php's no-session constraint
Bug: T127233 Change-Id: I3d9538b36f707ed69c2d163ccf1f807af4b02fc0
This commit is contained in:
parent
76c39c6f2c
commit
8b4c9c1131
1 changed files with 5 additions and 0 deletions
5
load.php
5
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue