Mercurial > public > mercurial-scm > hg
diff mercurial/utils/procutil.py @ 43019:2cc453284d5c
patchbomb: protect email addresses from shell
When patchbomb sends email via a sendmail-like program it invokes this
using procutil.popen which passes the string to a shell to be parsed.
To protect any special characters in the email addresses on the
command line from being interpretered by the shell they must be
quoted.
author | Floris Bruynooghe <flub@google.com> |
---|---|
date | Mon, 30 Sep 2019 00:01:58 +0200 |
parents | acf80f9edc85 |
children | 2372284d9457 |
line wrap: on
line diff
--- a/mercurial/utils/procutil.py Sun Sep 29 11:29:25 2019 -0700 +++ b/mercurial/utils/procutil.py Mon Sep 30 00:01:58 2019 +0200 @@ -70,6 +70,7 @@ spawndetached = platform.spawndetached sshargs = platform.sshargs testpid = platform.testpid +quote = pycompat.shlexquote try: setprocname = osutil.setprocname