summaryrefslogtreecommitdiff
path: root/lib/mat.py
diff options
context:
space:
mode:
authorjvoisin2011-07-03 13:47:42 +0200
committerjvoisin2011-07-03 13:47:42 +0200
commit0546f5ce28718c3ecf8e379633341234029bf794 (patch)
tree0e64c93ec8170b7a82c3184eee3be0255b74e3ec /lib/mat.py
parent7744e8a5add3e99e277f5eef9e76f0f7e46f2f04 (diff)
Fix the unicode problem
Diffstat (limited to 'lib/mat.py')
-rw-r--r--lib/mat.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mat.py b/lib/mat.py
index c9547c1..858fbc9 100644
--- a/lib/mat.py
+++ b/lib/mat.py
@@ -34,7 +34,6 @@ def secure_remove(filename):
34 ''' 34 '''
35 securely remove the file 35 securely remove the file
36 ''' 36 '''
37 #FIXME : Vulnerable to shell injection ?
38 try: 37 try:
39 subprocess.call('shred --remove %s' % filename, shell=True) 38 subprocess.call('shred --remove %s' % filename, shell=True)
40 except: 39 except:
@@ -78,5 +77,5 @@ def create_class_file(name, backup):
78 print("Don't have stripper for file type: %s" % editor.description) 77 print("Don't have stripper for file type: %s" % editor.description)
79 sys.exit(1) 78 sys.exit(1)
80 if editor.input.__class__ == hachoir_parser.misc.PDFDocument: 79 if editor.input.__class__ == hachoir_parser.misc.PDFDocument:
81 return stripper_class(filename, backup) 80 return stripper_class(filename, realname, backup)
82 return stripper_class(realname, filename, parser, editor, backup) 81 return stripper_class(realname, filename, parser, editor, backup)