summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-03-23 15:28:41 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-03-23 15:28:41 +0100
commitee055322f600a963f2ffa72485f8956022720c51 (patch)
treea9e4a139d10699fdc1861447662df8c029c8fa0a /src
parent26dbd646d0c2a9d4a5be0fa7620790b7298bd59b (diff)
PhotoRec: disable html detection during mbox recovery
Diffstat (limited to 'src')
-rw-r--r--src/file_txt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index 284c550..377dbd0 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -542,6 +542,10 @@ static int header_check_dc(const unsigned char *buffer, const unsigned int buffe
static int header_check_html(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{
+ if(file_recovery!=NULL && file_recovery->file_stat!=NULL &&
+ file_recovery->file_stat->file_hint==&file_hint_fasttxt &&
+ strcmp(file_recovery->extension,"mbox")==0)
+ return 0;
reset_file_recovery(file_recovery_new);
file_recovery_new->data_check=&data_check_html;
file_recovery_new->file_check=&file_check_size;