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
Dan Puttick 2017-04-29 21:25:23 -04:00
parent 11ab194232
commit fa1df8e67f
1 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,8 @@ class File(FileBase):
if right_to_left_override in self.filename:
self.make_dangerous('Filename contains dangerous character')
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):
"""