Skip to content

Commit

Permalink
Merge pull request #7252 from freedomofpress/flask-escape
Browse files Browse the repository at this point in the history
Import escape from markupsafe, not flask
  • Loading branch information
zenmonkeykstop authored Oct 23, 2024
2 parents 19e344a + 8581308 commit e593fbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion securedrop/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
from bs4 import BeautifulSoup
from db import db
from encryption import EncryptionManager
from flask import escape
from journalist_app.sessions import session
from markupsafe import escape
from source_app.session_manager import SessionManager
from store import Storage
from tests import utils
Expand Down
3 changes: 2 additions & 1 deletion securedrop/tests/test_journalist.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
from db import db
from encryption import EncryptionManager, GpgKeyNotFoundError
from flaky import flaky
from flask import escape, g, url_for
from flask import g, url_for
from flask_babel import gettext, ngettext
from journalist_app.sessions import session
from journalist_app.utils import mark_seen
from markupsafe import escape
from models import (
InstanceConfig,
InvalidPasswordLength,
Expand Down
3 changes: 2 additions & 1 deletion securedrop/tests/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
import version
from db import db
from encryption import EncryptionManager, GpgDecryptError, GpgKeyNotFoundError
from flask import escape, g, request, session, url_for
from flask import g, request, session, url_for
from journalist_app.utils import delete_collection
from markupsafe import escape
from models import InstanceConfig, Reply, Source
from passphrases import PassphraseGenerator
from source_app import api as source_app_api
Expand Down

0 comments on commit e593fbc

Please sign in to comment.