Skip to content

Commit

Permalink
Fix category parsing forom Fortiguard URLCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
srilumpa committed Jun 4, 2019
1 parent 8dae6a8 commit 20ad33c
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 20ad33c

Please sign in to comment.