From 38a918e48580500c18896e6b7af30e49976e1ea2 Mon Sep 17 00:00:00 2001 From: terrtia Date: Tue, 6 Feb 2024 11:56:39 +0100 Subject: [PATCH] fix: [flask] fix escape import --- bin/core/ail_2_ail.py | 2 +- bin/lib/Investigations.py | 2 +- bin/lib/Tracker.py | 2 +- var/www/blueprints/hunters.py | 2 +- var/www/modules/restApi/Flask_restApi.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/core/ail_2_ail.py b/bin/core/ail_2_ail.py index 780698fc..30f6f92e 100755 --- a/bin/core/ail_2_ail.py +++ b/bin/core/ail_2_ail.py @@ -11,7 +11,7 @@ import uuid import subprocess -from flask import escape +from markupsafe import escape sys.path.append(os.environ['AIL_BIN']) ################################## diff --git a/bin/lib/Investigations.py b/bin/lib/Investigations.py index 9c6def0f..855beb49 100755 --- a/bin/lib/Investigations.py +++ b/bin/lib/Investigations.py @@ -16,7 +16,7 @@ import time import uuid from enum import Enum -from flask import escape +from markupsafe import escape sys.path.append(os.environ['AIL_BIN']) ################################## diff --git a/bin/lib/Tracker.py b/bin/lib/Tracker.py index 9c4702ae..048d7219 100755 --- a/bin/lib/Tracker.py +++ b/bin/lib/Tracker.py @@ -16,7 +16,7 @@ from ail_typo_squatting import runAll import math from collections import defaultdict -from flask import escape +from markupsafe import escape from textblob import TextBlob from nltk.tokenize import RegexpTokenizer diff --git a/var/www/blueprints/hunters.py b/var/www/blueprints/hunters.py index 9a2b6c3e..1002f6e0 100644 --- a/var/www/blueprints/hunters.py +++ b/var/www/blueprints/hunters.py @@ -9,7 +9,7 @@ import os import sys import json -from flask import render_template, jsonify, request, Blueprint, redirect, url_for, Response, escape, abort +from flask import render_template, jsonify, request, Blueprint, redirect, url_for, Response, abort from flask_login import login_required, current_user, login_user, logout_user sys.path.append('modules') diff --git a/var/www/modules/restApi/Flask_restApi.py b/var/www/modules/restApi/Flask_restApi.py index 1b41bd4e..cc13d703 100644 --- a/var/www/modules/restApi/Flask_restApi.py +++ b/var/www/modules/restApi/Flask_restApi.py @@ -27,7 +27,7 @@ from packages import Import_helper from importer.FeederImporter import api_add_json_feeder_to_queue -from flask import jsonify, request, Blueprint, redirect, url_for, Response, escape +from flask import jsonify, request, Blueprint, redirect, url_for, Response from functools import wraps