Skip to content

Commit

Permalink
Sanitize BLE advertisement names
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Aug 29, 2024
1 parent d4af0dc commit f6dc1af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BLE/Protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ void ble_scan_protocol::scan_services()
std::string periph_name = m_peripheral.identifier().empty()
? m_peripheral.address()
: m_peripheral.identifier();
ossia::net::sanitize_name(periph_name);
auto& prp_node
= ossia::net::find_or_create_node(m_device->get_root_node(), periph_name);
for(auto& service : m_peripheral.services())
Expand Down

0 comments on commit f6dc1af

Please sign in to comment.