update-zuliprc-api-field: Add missing shell quoting.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-09-02 20:02:44 -07:00 committed by Tim Abbott
parent d751e0cece
commit 5a1104f1b8
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ Usage:
import argparse import argparse
import configparser import configparser
import os import os
import shlex
import subprocess import subprocess
import sys import sys
@ -50,7 +51,7 @@ for zuliprc_path in zuliprc_paths_list:
if is_vagrant_env_host(ZULIP_PATH): if is_vagrant_env_host(ZULIP_PATH):
arguments = ['vagrant', 'ssh', '--command', arguments = ['vagrant', 'ssh', '--command',
'./manage.py print_initial_password ' + email] './manage.py print_initial_password ' + shlex.quote(email)]
else: else:
# Support users who don't have vagrant based setup # Support users who don't have vagrant based setup
arguments = ['./manage.py', 'print_initial_password', email] arguments = ['./manage.py', 'print_initial_password', email]