bug: Webcron handler missing return after sendJsonResponse on auth failure #79
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: HIGH
In the system plugin's
onAfterInitialise, after callingsendJsonResponse()for invalid secret or disabled webcron, there is noreturnstatement. WhilesendJsonResponse()calls$app->close(), ifclose()is somehow non-terminal (tests, custom app subclass), execution falls through to the backup logic unauthenticated.Fix
Add
return;after eachsendJsonResponse()call in the auth checks.File
plg_system_mokosuitebackup/src/Extension/MokoSuiteBackup.php:62-74