summaryrefslogtreecommitdiffstats
path: root/src/file_txt.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-02-16 16:13:23 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2013-02-16 16:13:23 +0100
commit3badc433a4bee0df31ae1253b40d6cdf85c9296b (patch)
tree006f34b63bfa9d088bf4fec60ecca294c9f914e9 /src/file_txt.c
parent5a0e2bb807b529164d414249ae6b0ddd7affc7ae (diff)
PhotoRec: recover FictionBook .fb2
Diffstat (limited to 'src/file_txt.c')
-rw-r--r--src/file_txt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index ad72dc5..445e477 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -631,6 +631,11 @@ static int header_check_xml(const unsigned char *buffer, const unsigned int buff
/* Scribus XML file */
file_recovery_new->extension="sla";
}
+ else if(strncasecmp(tmp, "<FictionBook", 12)==0)
+ {
+ /* FictionBook, see http://www.fictionbook.org */
+ file_recovery_new->extension="fb2";
+ }
tmp++;
tmp=strchr(tmp,'<');
}