Skip to content

Commit

Permalink
fixing issues with mailto links and parameter extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidsec committed Dec 19, 2024
1 parent 42eebcd commit f8a8e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bbot/core/helpers/regexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
textarea_tag_regex = re.compile(
r'<textarea[^>]*\bname=["\']?(\w+)["\']?[^>]*>(.*?)</textarea>', re.IGNORECASE | re.DOTALL
)
tag_attribute_regex = re.compile(r"<[^>]*(?:href|src)\s*=\s*[\"\']([^\"\']+)[\"\'][^>]*>")
tag_attribute_regex = re.compile(r"<[^>]*(?:href|action|src)\s*=\s*[\"\']?(?!mailto:)([^\s\'\"\>]+)[\"\']?[^>]*>")

valid_netloc = r"[^\s!@#$%^&()=/?\\'\";~`<>]+"

Expand Down

0 comments on commit f8a8e8d

Please sign in to comment.