fix: review fixes — infinite recursion, SQL injection, FK prefix, DB importer #49
Reference in New Issue
Block a user
Delete Branch "dev"
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?
Summary
Post-merge review fixes from PR #46.
Critical Fixes
getValidatedPrefix()— was calling itself instead of reading from$dataactionResetAdmin()— prefix not validated, now usesgetValidatedPrefix()str_replacenow targets backtick+prefix patternError Handling
cleanupOldBackups()in try-catch (prevents admin panel crash on DB errors)deleteBackupRecord()logs unlink failures, wraps DB delete in try-catchrunPreActionBackupcatches\\Throwableinstead of\\ExceptionsendNtfy()checks for ext-curl beforecurl_init()Other Fixes
DatabaseImporter: apply#__prefix replacement on trailing SQL statementSteppedBackupEngine: remove unusedDatabaseDumperinstantiation, fix indentation\\Throwableinstead of\\ExceptionTest plan
Pull request closed