Commit b969aa1a authored by Mickaël Turnel's avatar Mickaël Turnel

Fix handling of username with space.

Cherry picked from dev_chat_conference 27e1b9d9
parent 786257a1
......@@ -197,7 +197,7 @@ void FileAuthDb::sync() {
// if user with space, replace %20 by space
string user_ref;
url_unescape(&user_ref[0], user.c_str());
if (!ss.eof()) {
// TODO read userid with space
......@@ -93,7 +93,7 @@ string AuthDbBackend::createPasswordKey(const string &user, const string &auth_u
ostringstream key;
string unescapedUsername;
url_unescape(&unescapedUsername[0], auth_username.c_str());
key << user << "#" << unescapedUsername;
return key.str();
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