mirror of https://github.com/CIRCL/PyCIRCLean
Remove rtl character from filename in log
* Previously, filecheck.py removed rtl character from the destination path only. * Now, the rtl character is replaced in file.filename and the filename file property.pull/16/head
parent
11ab194232
commit
fa1df8e67f
|
@ -223,7 +223,8 @@ class File(FileBase):
|
||||||
if right_to_left_override in self.filename:
|
if right_to_left_override in self.filename:
|
||||||
self.make_dangerous('Filename contains dangerous character')
|
self.make_dangerous('Filename contains dangerous character')
|
||||||
self.dst_path = self.dst_path.replace(right_to_left_override, '')
|
self.dst_path = self.dst_path.replace(right_to_left_override, '')
|
||||||
# TODO: change self.filename and'filename' property? Or should those reflect the values on the source key
|
self.filename = self.filename.replace(right_to_left_override, '')
|
||||||
|
self.set_property('filename', self.filename)
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue