aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-10-29 20:27:13 -0700
committerPinapelz <yukais@pinapelz.com>2026-10-29 20:27:13 -0700
commit29ff6ad6bcf6e7bfc9fece59a3bd849a786022a1 (patch)
tree00593a47efb36e4ca3ef4a54e45f906918082acd /app.py
parent96bfe2e1505b4ae250f2d5201f9541ceb01cec84 (diff)
change banners to absolute url
Diffstat (limited to 'app.py')
-rw-r--r--app.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/app.py b/app.py
index 2b10dcd..2cf12f4 100644
--- a/app.py
+++ b/app.py
@@ -39,8 +39,11 @@ ALLOWED_STATIC_EXTENSIONS = {
}
-def safe_url(filename):
- return quote(str(filename or ""), safe="/")
+def safe_url(url):
+ raw = str(url or "").strip()
+ if not raw:
+ return ""
+ return quote(raw, safe=":/?&=#%+~@!$,;*-._")
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage