summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-04-11 19:42:00 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-04-11 19:42:00 +0200
commit4470b802c0d66435b566ca708eb610e588561de4 (patch)
tree03d1b61e2a5024a5a57cde0bb9f41a68f4dd73ae
parentd088f88576e6f0bbaeecd52947d94ba274d96574 (diff)
PhotoRec: add two new signatures for html files
-rw-r--r--src/file_txt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index b96aab9..48b7f0f 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -1201,9 +1201,12 @@ static void register_header_check_fasttxt(file_stat_t *file_stat)
register_header_check(0, header->string, header->len, &header_check_fasttxt, file_stat);
header++;
}
- register_header_check(4, "SC V10", 6, &header_check_dc, file_stat);
+ register_header_check(4, "SC V10", 6, &header_check_dc, file_stat);
register_header_check(0, "DatasetHeader Begin", 19, &header_check_ers, file_stat);
+// register_header_check(0, "\n<!DOCTYPE html", 15, &header_check_html, file_stat);
+ register_header_check(0, "<!DOCTYPE html", 14, &header_check_html, file_stat);
register_header_check(0, "<!DOCTYPE HTML", 14, &header_check_html, file_stat);
+// register_header_check(0, "<html", 5, &header_check_html, file_stat);
register_header_check(0, "BEGIN:VCALENDAR", 15, &header_check_ics, file_stat);
register_header_check(0, "From ", 5, &header_check_mbox, file_stat);
register_header_check(0, "Message-ID: ", 12, &header_check_mbox, file_stat);