chore: Add comment to make it clear the bail out for status.php should

not be moved above ini_set calls.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/54713/head
Côme Chilliet 2025-09-01 10:52:31 +07:00
parent 34aaa0cf83
commit 22160b9d2b
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
1 changed files with 1 additions and 0 deletions

@ -397,6 +397,7 @@ class OC {
// Do not initialize sessions for 'status.php' requests
// Monitoring endpoints can quickly flood session handlers
// and 'status.php' doesn't require sessions anyway
// We still need to run the ini_set above so that same-site cookies use the correct configuration.
if (str_ends_with($request->getScriptName(), '/status.php')) {
return;
}