Skip to content

Commit 40d3a69

Browse files
committed
Escape single quotes from list
1 parent efa5730 commit 40d3a69

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

msticpy/data/drivers/azure_monitor_driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ def _format_list(param_list: Iterable[Any]):
650650
fmt_list = []
651651
for item in param_list:
652652
if isinstance(item, str):
653+
item = item.replace("'", r"\'")
653654
fmt_list.append(f"'{item}'")
654655
else:
655656
fmt_list.append(f"{item}")

0 commit comments

Comments
 (0)