X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=profileinfo.php;h=d000972051e5dc50a8136f8c98a9e0774e10e188;hp=0a60b08a277b5377fbb373a87f0821d4ddcdfe74;hb=a62cd6a7e50356f0a2ce18d28ccf94d4a2291329;hpb=97af92da48f0d434cf4b541e7a3f2d96619a95b2 diff --git a/profileinfo.php b/profileinfo.php index 0a60b08a27..d000972051 100644 --- a/profileinfo.php +++ b/profileinfo.php @@ -37,9 +37,8 @@ */ // 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 ); ini_set( 'zlib.output_compression', 'off' ); @@ -339,11 +338,7 @@ $res = $dbr->select( [ 'ORDER BY' => 'pf_name ASC' ] ); -if ( isset( $_REQUEST['filter'] ) ) { - $filter = $_REQUEST['filter']; -} else { - $filter = ''; -} +$filter = $_REQUEST['filter'] ?? ''; ?>