Fix security issues detected by contrib

This commit is contained in:
manav363 2026-01-02 15:51:02 +05:30
parent f2687dc1bb
commit 7a1b69e6d6
5 changed files with 8 additions and 3 deletions

View File

@ -24,7 +24,8 @@ def run(playwright: Playwright) -> None:
process = subprocess.Popen(
["fastapi", "run", "docs_src/cookie_param_models/tutorial001.py"]
["fastapi", "run", "docs_src/cookie_param_models/tutorial001.py"],
shell=False
)
try:
for _ in range(3):

View File

@ -23,7 +23,8 @@ def run(playwright: Playwright) -> None:
process = subprocess.Popen(
["fastapi", "run", "docs_src/header_param_models/tutorial001.py"]
["fastapi", "run", "docs_src/header_param_models/tutorial001.py"],
shell=False
)
try:
for _ in range(3):

View File

@ -26,7 +26,8 @@ def run(playwright: Playwright) -> None:
process = subprocess.Popen(
["fastapi", "run", "docs_src/query_param_models/tutorial001.py"]
["fastapi", "run", "docs_src/query_param_models/tutorial001.py"],
shell=False
)
try:
for _ in range(3):

View File

@ -23,6 +23,7 @@ def run(playwright: Playwright) -> None:
process = subprocess.Popen(
["fastapi", "run", "docs_src/sql_databases/tutorial001.py"],
shell=False
)
try:
for _ in range(3):

View File

@ -23,6 +23,7 @@ def run(playwright: Playwright) -> None:
process = subprocess.Popen(
["fastapi", "run", "docs_src/sql_databases/tutorial002.py"],
shell=False
)
try:
for _ in range(3):