replace all % to @
This commit is contained in:
parent
0185f94872
commit
6b10147edb
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ void UserManager::handlePresence(Swift::Presence::ref presence) {
|
|||
res.password = "";
|
||||
res.uin = presence->getFrom().getNode();
|
||||
res.jid = userkey;
|
||||
if (res.uin.find_last_of("%") != std::string::npos) { // OK
|
||||
while (res.uin.find_last_of("%") != std::string::npos) { // OK
|
||||
res.uin.replace(res.uin.find_last_of("%"), 1, "@"); // OK
|
||||
}
|
||||
if (m_storageBackend) {
|
||||
|
|
Loading…
Add table
Reference in a new issue