From 0c405e6b86efd4f80614c32b3731b6c207c1c133 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 26 Nov 2022 08:11:00 +0200 Subject: [PATCH] fix this https://rdrama.net/post/125682 --- files/routes/posts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index 5b912bc04..e5c2c2f1e 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1,5 +1,6 @@ import os import time +import html from io import BytesIO from os import path from shutil import copyfile @@ -1098,4 +1099,6 @@ def get_post_title(v): title = match.group(1) else: abort(400) + title = html.unescape(title) + return {"url": url, "title": title}