From 0546f5ce28718c3ecf8e379633341234029bf794 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 3 Jul 2011 13:47:42 +0200 Subject: Fix the unicode problem --- lib/mat.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/mat.py') 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): ''' securely remove the file ''' - #FIXME : Vulnerable to shell injection ? try: subprocess.call('shred --remove %s' % filename, shell=True) except: @@ -78,5 +77,5 @@ def create_class_file(name, backup): print("Don't have stripper for file type: %s" % editor.description) sys.exit(1) if editor.input.__class__ == hachoir_parser.misc.PDFDocument: - return stripper_class(filename, backup) + return stripper_class(filename, realname, backup) return stripper_class(realname, filename, parser, editor, backup) -- cgit v1.3