Skip to content

Commit

Permalink
Fixes trustedsec#721 - swaps out cgi module for html
Browse files Browse the repository at this point in the history
  • Loading branch information
seandheath committed May 4, 2020
1 parent a95413d commit d2d073d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webattack/harvester/harvester.py
Expand Up @@ -3,11 +3,11 @@
import sys
import os
import re
import cgi
import posixpath
import mimetypes
import urllib.parse
import shutil
from html import escape as html_escape

# need for python2 -> 3
try:
Expand Down Expand Up @@ -412,7 +412,7 @@ def do_POST(self):
else:
line = ""
counter = 1
filewrite.write(cgi.escape("PARAM: " + line + "\n"))
filewrite.write(html_escape("PARAM: " + line + "\n"))
filewrite2.write(line + "\n")
# if a counter hits at 0 then print this line
if counter == 0:
Expand Down

0 comments on commit d2d073d

Please sign in to comment.