From 9ca2db31ea77261f8832a206d355138a8656d28b Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 1 Mar 2006 10:49:11 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=9581 --- client/acct_setup.C | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/client/acct_setup.C b/client/acct_setup.C index a5eeaf8edf..7ffe35f663 100644 --- a/client/acct_setup.C +++ b/client/acct_setup.C @@ -126,12 +126,20 @@ void GET_PROJECT_CONFIG_OP::handle_reply(int http_op_retval) { int LOOKUP_ACCOUNT_OP::do_rpc(ACCOUNT_IN& ai) { int retval; string url; + string parameter; url = ai.url; canonicalize_master_url(url); - url += "lookup_account.php?email_addr="+ai.email_addr+"&passwd_hash="+ai.passwd_hash; - escape_url(url); + url += "lookup_account.php?email_addr="; + parameter = ai.email_addr; + escape_url(parameter); + url += parameter; + + url += "&passwd_hash="; + parameter = ai.passwd_hash; + escape_url(parameter); + url += parameter; retval = gstate.gui_http.do_rpc(this, url, LOOKUP_ACCOUNT_FILENAME); if (retval) { @@ -160,12 +168,25 @@ void LOOKUP_ACCOUNT_OP::handle_reply(int http_op_retval) { int CREATE_ACCOUNT_OP::do_rpc(ACCOUNT_IN& ai) { int retval; string url; + string parameter; url = ai.url; canonicalize_master_url(url); - url += "create_account.php?email_addr="+ai.email_addr+"&passwd_hash="+ai.passwd_hash+"&user_name="+ai.user_name; - escape_url(url); + url += "create_account.php?email_addr="; + parameter = ai.email_addr; + escape_url(parameter); + url += parameter; + + url += "&passwd_hash="; + parameter = ai.passwd_hash; + escape_url(parameter); + url += parameter; + + url += "&user_name="; + parameter = ai.user_name; + escape_url(parameter); + url += parameter; retval = gstate.gui_http.do_rpc(this, url, CREATE_ACCOUNT_FILENAME); if (retval) {