Commit d96478aa authored by Timothée Jaussoin's avatar Timothée Jaussoin
Browse files

Replace spaces in emails with a _ to prevent issues in the testers

parent 011e2fa9
......@@ -33,6 +33,8 @@
#include <functional>
#include <json/json.h>
#include <algorithm>
#include <string>
using namespace LinphonePrivate;
using namespace std;
......
......@@ -256,7 +256,7 @@ void account_create_in_server_db(Account *account, LinphoneProxyConfig *cfg){
const char *password = account->password;
const char *domain = linphone_proxy_config_get_domain(cfg);
char *email = bctbx_strdup_printf("%s@%s", username, domain);
char *email = bctbx_replace(bctbx_strdup_printf("%s@%s", username, domain), ' ', '_');
const char *algorithm = linphone_config_get_string(linphone_core_get_config(linphone_proxy_config_get_core(cfg)), "assistant", "algorithm", NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment