mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-04-19 08:55:15 +00:00
Fix Cross Site Scripting Issue (#497)
* Update eos.py * ruff format * ruff format
This commit is contained in:
parent
7734c9c32f
commit
2468efe604
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import html
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
@ -129,8 +130,8 @@ def create_error_page(
|
||||
return (
|
||||
ERROR_PAGE_TEMPLATE.replace("STATUS_CODE", status_code)
|
||||
.replace("ERROR_TITLE", error_title)
|
||||
.replace("ERROR_MESSAGE", error_message)
|
||||
.replace("ERROR_DETAILS", error_details)
|
||||
.replace("ERROR_MESSAGE", html.escape(error_message))
|
||||
.replace("ERROR_DETAILS", html.escape(error_details))
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user