mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-21 04:34:47 +03:00
Fix quoting for CommandViewer
This commit is contained in:
parent
fd02b12561
commit
3500c00de2
|
@ -278,7 +278,7 @@ class CommandViewer(Viewer):
|
||||||
command = options["command"]
|
command = options["command"]
|
||||||
if not isinstance(command, str):
|
if not isinstance(command, str):
|
||||||
raise TypeError(f"'command' must be 'str' not '{type(command)}'")
|
raise TypeError(f"'command' must be 'str' not '{type(command)}'")
|
||||||
values = {"file": file, **options}
|
values = {"file": quote(file), **options}
|
||||||
return command.format(values)
|
return command.format(values)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user