mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Provide sanitized version of output filename
This commit is contained in:
parent
bc58b78db7
commit
5bba249c87
1 changed files with 4 additions and 0 deletions
|
@ -123,6 +123,10 @@ class Document:
|
|||
self.validate_output_filename(filename)
|
||||
self._output_filename = filename
|
||||
|
||||
@property
|
||||
def sanitized_output_filename(self) -> str:
|
||||
return util.replace_control_chars(self.output_filename)
|
||||
|
||||
@property
|
||||
def suffix(self) -> str:
|
||||
return self._suffix
|
||||
|
|
Loading…
Reference in a new issue