Skip to content

Commit

Permalink
[WIP] Security fixes - part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-vido committed Jan 7, 2025
1 parent ff65ffe commit e547c42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/jira.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
# https://docs.atlassian.com/software/jira/docs/api/REST/latest
import json
import os
import sys
import urllib.parse
import urllib.request
Expand All @@ -17,7 +18,7 @@ def main():
print(f'Usage: {sys.argv[0]} session_file sprint', file=sys.stderr)
sys.exit(1)
_, session_file, sprint = sys.argv
ret = search(open(session_file).read().rstrip(), f'sprint="{sprint}"')
ret = search(open(os.path.normpath(session_file)).read().rstrip(), f'sprint="{sprint}"')
print_issues(*partition(
filter(
lambda x: not x['fields']['issuetype']['subtask'],
Expand Down

0 comments on commit e547c42

Please sign in to comment.