summaryrefslogtreecommitdiffstats
path: root/src/file_txt.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-09-10 22:22:59 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-09-10 22:22:59 +0200
commit0a869af4d3a1fbf96a9ad33b1a040817a7df1331 (patch)
tree36299570a825b29d259e32a75fb0ee90b99a8d3e /src/file_txt.c
parent69355438db0dc3c70a4a67423029ec11d78f954c (diff)
PhotoRec: recover scribus .sla files
Diffstat (limited to 'src/file_txt.c')
-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 9dcfccb..4d5a048 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -595,6 +595,10 @@ static int header_check_xml(const unsigned char *buffer, const unsigned int buff
file_recovery_new->data_check=NULL;
file_recovery_new->extension="prproj";
}
+ else if(td_memmem(buffer, buffer_size, "<SCRIBUS", 8)!=NULL)
+ {
+ file_recovery_new->extension="sla";
+ }
else
file_recovery_new->extension="xml";
file_recovery_new->file_check=&file_check_xml;