From cd005935e2540fb427112ea404bdc5b3f80dff13 2016-02-19 17:16:34 From: Jan Kaluza Date: 2016-02-19 17:16:34 Subject: [PATCH] Web interface: Allow joining rooms with white-spaces in the nickname --- diff --git a/spectrum_manager/src/APIServer.cpp b/spectrum_manager/src/APIServer.cpp index fc1d99e9621a8a011e2d2b5aca10cf6fe6c3cd65..3ad86fb14abea541143b17fe582e3c7531d50112 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");