mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	update-zuliprc-api-field: Add missing shell quoting.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							d751e0cece
						
					
				
				
					commit
					5a1104f1b8
				
			@@ -11,6 +11,7 @@ Usage:
 | 
			
		||||
import argparse
 | 
			
		||||
import configparser
 | 
			
		||||
import os
 | 
			
		||||
import shlex
 | 
			
		||||
import subprocess
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
@@ -50,7 +51,7 @@ for zuliprc_path in zuliprc_paths_list:
 | 
			
		||||
 | 
			
		||||
        if is_vagrant_env_host(ZULIP_PATH):
 | 
			
		||||
            arguments = ['vagrant', 'ssh', '--command',
 | 
			
		||||
                         './manage.py print_initial_password ' + email]
 | 
			
		||||
                         './manage.py print_initial_password ' + shlex.quote(email)]
 | 
			
		||||
        else:
 | 
			
		||||
            # Support users who don't have vagrant based setup
 | 
			
		||||
            arguments = ['./manage.py', 'print_initial_password', email]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user