Skip to content

Commit

Permalink
fix: prevent matching subpaths upon introspections.
Browse files Browse the repository at this point in the history
  • Loading branch information
Remy Noel committed May 12, 2023
1 parent fd64415 commit f4bc029
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dbus_fast/message_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,8 @@ def _introspect_export_path(self, path: str) -> intr.Node:
children = set()

for export_path in self._path_exports:
if not export_path.startswith(path):
continue
try:
child_path = export_path.split(path, maxsplit=1)[1]
except IndexError:
Expand Down

0 comments on commit f4bc029

Please sign in to comment.