Skip to content

Commit

Permalink
Fix. Scanner. Manual cure logic fixed - added stage creating a backup. (
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg authored Oct 2, 2024
1 parent 5576fd3 commit 81cc144
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/CleantalkSP/SpbctWP/Scanner/Stages/CureStage.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ private function preCheckFile($file, $cure_log_record, $weak_spots_decoded)
return $cure_log_record;
}

spbc_backup__files_with_signatures(true);

//check if file has backup
if ( !$this->fileHasBackup($file) ) {
//cure is not safe without backups, log this and return cure_log_record
Expand Down

0 comments on commit 81cc144

Please sign in to comment.