Skip to content

Commit

Permalink
Chore/fix escape issue (#51)
Browse files Browse the repository at this point in the history
flask.escape is now part of makeupsafe
  • Loading branch information
mauvehed authored Oct 24, 2023
1 parent c3ffefe commit 84bb9f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Flask, request, render_template, escape
from flask import Flask, request, render_template,
from markupsafe import escape
import os

app = Flask(__name__,
Expand Down
14 changes: 2 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ homepage = "https://yourIP.app/"
python = "^3.10"
Flask = "3.0.0"
gunicorn = "^21.2.0"
markupsafe = "^2.1.3"

[tool.poetry.dev-dependencies]

Expand Down

0 comments on commit 84bb9f9

Please sign in to comment.