X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=opensearch_desc.php;h=92c182d8a70e2a2f993ef61cb7202a46e9008555;hp=bef168878f1df4fc3517abe347d22de53af625e0;hb=858067fec39ffb88371fc936a40e4f88e0606ec4;hpb=d716155c8b2d6e4a51a4110195cee7a1794846e8 diff --git a/opensearch_desc.php b/opensearch_desc.php index bef168878f..92c182d8a7 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -20,6 +20,11 @@ * @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' ) {