mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
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>
This commit is contained in:
parent
317044a68b
commit
dc49dbc4bb
1 changed files with 1 additions and 0 deletions
|
|
@ -394,6 +394,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue