Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SpectrumIM/spectrum2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kaluza <jkaluza@redhat.com>2016-02-19 19:16:34 +0300
committerJan Kaluza <jkaluza@redhat.com>2016-02-19 19:16:34 +0300
commitcd005935e2540fb427112ea404bdc5b3f80dff13 (patch)
treea3b3d9c070caa4b756dcdc08223b3ce7b226eac1 /spectrum_manager
parentfbfb07e8ba22643348069f1235ad306845fb1bd2 (diff)
Web interface: Allow joining rooms with white-spaces in the nickname
Diffstat (limited to 'spectrum_manager')
-rw-r--r--spectrum_manager/src/APIServer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/spectrum_manager/src/APIServer.cpp b/spectrum_manager/src/APIServer.cpp
index fc1d99e9..3ad86fb1 100644
--- a/spectrum_manager/src/APIServer.cpp
+++ b/spectrum_manager/src/APIServer.cpp
@@ -313,6 +313,7 @@ void APIServer::serve_instances_join_room(Server *server, Server::session *sessi
}
std::string name = get_http_var(hm, "name");
+ boost::replace_all(name, " ", "_");
std::string legacy_room = get_http_var(hm, "legacy_room");
std::string legacy_server = get_http_var(hm, "legacy_server");
std::string frontend_room = get_http_var(hm, "frontend_room");