Changeset - cd005935e254
[Not reviewed]
0 1 0
Jan Kaluza - 9 years ago 2016-02-19 17:16:34
jkaluza@redhat.com
Web interface: Allow joining rooms with white-spaces in the nickname
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
spectrum_manager/src/APIServer.cpp
Show inline comments
 
@@ -310,12 +310,13 @@ void APIServer::serve_instances_join_room(Server *server, Server::session *sessi
 
	if (username.empty()) {
 
		send_ack(conn, true, "You are not registered to this Spectrum 2 instance.");
 
		return;
 
	}
 

	
 
	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");
 

	
 
	std::string response = server->send_command(instance, "join_room " +
 
		username + " " + name + " " + legacy_room + " " + legacy_server + " " + frontend_room);
0 comments (0 inline, 0 general)