diff --git a/src/webattack/harvester/harvester.py b/src/webattack/harvester/harvester.py index 9843c9a5b4..22bddc173c 100644 --- a/src/webattack/harvester/harvester.py +++ b/src/webattack/harvester/harvester.py @@ -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: @@ -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: