We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e290f commit 51bfefeCopy full SHA for 51bfefe
1 file changed
disclosure/sectxtparse.py
@@ -24,6 +24,9 @@ def parsesectxt(rawdata):
24
sectxt = rawdata.decode("utf-8").strip().split("\n")
25
except UnicodeDecodeError:
26
return None
27
+ if sectxt[0].lower().startswith(("<html", "<!doctype")):
28
+ # Skip parsing if content looks like HTML file
29
+ return None
30
dat = {}
31
for line in sectxt:
32
if line.startswith("#") or line.strip() == "":
0 commit comments