Skip to content
Snippets Groups Projects
Commit 9858b33b authored by 🥺's avatar 🥺 :transgender_flag: Committed by 🥺
Browse files

just remove double quotes if found instead

parent e0419d9c
No related branches found
No related tags found
No related merge requests found
......@@ -92,18 +92,11 @@ pub async fn create_room_route(
}
let full_room_id = "!".to_owned()
+ custom_room_id_s.as_str()
+ &custom_room_id_s.replace('"', "")
+ ":"
+ services().globals.server_name().as_ref();
debug!("Full room ID: {}", full_room_id);
if full_room_id.contains('"') {
return Err(Error::BadRequest(
ErrorKind::InvalidParam,
"Custom room ID contained `\"` which is not allowed.",
));
}
room_id = RoomId::parse(full_room_id).map_err(|e| {
info!(
"User attempted to create room with custom room ID but failed parsing: {}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment