Skip to content

Commit

Permalink
Fix escape
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-nameless committed Apr 24, 2021
1 parent 70f8be1 commit 9765bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def notify(
notify_cmd = cmd.format(
icon_path=shlex.quote(config.ICON_PATH),
title=shlex.quote(title),
subtitle=shlex.quote(shlex.escape(subtitle)),
msg=shlex.quote(shlex.escape(msg)),
subtitle=shlex.quote(subtitle.replace("'", "'\\''") + "'"),
msg=shlex.quote(msg.replace("'", "'\\''") + "'"),
)
subprocess.Popen(notify_cmd, shell=True)

Expand Down

0 comments on commit 9765bc5

Please sign in to comment.