Skip to content

Commit

Permalink
Fix for issue TheHive-Project#493
Browse files Browse the repository at this point in the history
  • Loading branch information
phpsystems committed Oct 9, 2019
1 parent 62d2dc4 commit 3bae7fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/Fortiguard/urlcategory.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def run(self):

if self.data_type == 'domain' or self.data_type == 'url' or self.data_type == 'fqdn':
try:
pattern = re.compile("(?:Category: )([\w\s]+)")
pattern = re.compile("(?:Category: )([-\w\s]+)")
baseurl = 'https://www.fortiguard.com/webfilter?q='
url = baseurl + self.get_data()
req = requests.get(url)
Expand Down

0 comments on commit 3bae7fe

Please sign in to comment.