Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2148)

Unified Diff: bin/cros_gsdcurl.py

Issue 3058046: Fix gsdcurl to correctly URL-quote a password passed via GSDCURL_PASSWORD (Closed) Base URL: ssh://gitrw.chromium.org/crosutils.git
Patch Set: eliminate incorrectly added stray file Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/cros_gsdcurl.py
diff --git a/bin/cros_gsdcurl.py b/bin/cros_gsdcurl.py
index e046fe2795e84c20d90940d6f38c3e9606750f41..ed024f3fc40e3a5e1532a1c2cae08d8dea27b302 100755
--- a/bin/cros_gsdcurl.py
+++ b/bin/cros_gsdcurl.py
@@ -27,11 +27,11 @@ def Authenticate():
passwd = os.environ.get('GSDCURL_PASSWORD')
if passwd is None:
sys.stderr.write('Password: ')
- passwd = urllib.quote_plus(getpass.getpass(prompt=''))
+ passwd = getpass.getpass(prompt='')
cmd = [
'curl', '--silent', 'https://www.google.com/accounts/ClientLogin',
'-d', 'Email=' + username,
- '-d', 'Passwd=' + passwd,
+ '-d', 'Passwd=' + urllib.quote_plus(passwd),
'-d', 'accountType=GOOGLE',
'-d', 'source=Google-gsdcurl-ver1',
'-d', 'service=cds',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698