Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit 274aa0f

Browse files
authored
fix(slack): ensure only one slash in tags (#5528)
1 parent 6df78fe commit 274aa0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dispatch/plugins/dispatch_slack/incident/interactive.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ def handle_tag_search_action(
249249
}
250250

251251
if "/" in query_str:
252+
# first check to make sure there's only one slash
253+
if query_str.count("/") > 1:
254+
ack()
255+
return
256+
252257
tag_type, query_str = query_str.split("/")
253258
filter_spec["and"].append(
254259
{"model": "TagType", "op": "==", "field": "name", "value": tag_type}

0 commit comments

Comments
 (0)