From f490b1039acd2198be138264956d52117eb6719a Mon Sep 17 00:00:00 2001 From: Benau Date: Wed, 14 Jul 2021 10:38:59 +0800 Subject: [PATCH] Remove unneeded characters from server bookmark key --- src/network/server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/server.cpp b/src/network/server.cpp index dc06a01c2..c092c4c0c 100644 --- a/src/network/server.cpp +++ b/src/network/server.cpp @@ -243,7 +243,8 @@ void Server::setAddress(const SocketAddress& addr) // ---------------------------------------------------------------------------- std::string Server::getBookmarkKey() const { - return StringUtils::xmlEncode(m_name) + + core::stringw name = m_name; + return StringUtils::xmlEncode(name.trim().removeChars(L"\n\r\t")) + StringUtils::toString(m_server_owner); } // getBookmarkKey