Skip to content

Critical issue on empty --limit option #75

@sebastianfeldmann

Description

@sebastianfeldmann

var_dump(explode(',', ''));
prints the following output:

array(1) {
[0]=>
string(0) ""
}
therefore limit is never empty during the $configuration->isBackupActive() check, which leads to phpbu currently skipping all backups if you don't explicitly set the limit-option.

checking if the limit option is empty before explode'ing will fix the issue.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions