Merge pull request #51 from virtualghetto/restore-enc-notes

Restore encrypted notes
This commit is contained in:
Daniel Winzen
2019-02-24 12:59:47 +01:00
committed by GitHub

View File

@ -767,6 +767,9 @@ function restore_backup($C){
}elseif($note['type']==='staff'){
$note['type']=1;
}
if(MSGENCRYPTED){
$note['text']=openssl_encrypt($note['text'], 'aes-256-cbc', ENCRYPTKEY, 0, '1234567890123456');
}
$stmt->execute([$note['type'], $note['lastedited'], $note['editedby'], $note['text']]);
}
}