Skip to content

Commit

Permalink
fix: use getScriptName
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf authored Nov 21, 2024
1 parent 11e15e5 commit 85ccc8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ public static function initSession(): void {
// Do not initialize sessions for 'status.php' requests
// Monitoring endpoints can quickly flood session handlers
// and 'status.php' doesn't require sessions anyway
if (OC::$SUBURI === '/status.php') {
if (str_ends_with($request->getScriptName(), '/status.php')) {
return;
}

Expand Down

0 comments on commit 85ccc8e

Please sign in to comment.