mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 23:26:12 -04:00
profile_object_path: Ensure the object name is valid.
This commit is contained in:
@@ -14,7 +14,8 @@ std::string device_object_path(const sdbus::ObjectPath &adapter_object_path,
|
||||
}
|
||||
|
||||
sdbus::ObjectPath profile_object_path(absl::string_view service_uuid) {
|
||||
return absl::Substitute("/com/google/nearby/profiles/$0", service_uuid);
|
||||
return absl::Substitute("/com/google/nearby/profiles/$0",
|
||||
absl::StrReplaceAll(service_uuid, {{"-", "_"}}));
|
||||
}
|
||||
|
||||
sdbus::ObjectPath adapter_object_path(absl::string_view name) {
|
||||
|
||||
Reference in New Issue
Block a user