mirror of
https://github.com/paul-nameless/tg
synced 2024-11-22 03:43:19 +00:00
Escape safely shell arguments
This commit is contained in:
parent
0a073fe33e
commit
01c755c165
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ def notify(
|
|||
icon_path=shlex.quote(config.ICON_PATH),
|
||||
title=shlex.quote(title),
|
||||
subtitle=shlex.quote(subtitle),
|
||||
msg=shlex.quote(msg),
|
||||
msg=shlex.quote(msg.replace("'", "'\\''") + "'"),
|
||||
)
|
||||
subprocess.Popen(notify_cmd, shell=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue