From 09528e0c3c1244ed1b64f9078fb724f10623e1f6 Mon Sep 17 00:00:00 2001 From: bacon Date: Wed, 5 Mar 2025 22:37:21 +0300 Subject: [PATCH] update rss_proxy.py * testing fixes description --- proxy/rss_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/rss_proxy.py b/proxy/rss_proxy.py index 240c287..8333eb5 100755 --- a/proxy/rss_proxy.py +++ b/proxy/rss_proxy.py @@ -51,6 +51,7 @@ def init_proxy(app): raw_query = request.query_string.decode() if raw_query.startswith("url="): url = urllib.parse.unquote(raw_query[4:]) + url = html.unescape(url) else: return "Missing URL", 400 @@ -110,7 +111,6 @@ def init_proxy(app): final_items = cached_items + new_items response_xml = f"""{_head_html}{"".join(final_items)}""" - response_xml = response_xml.replace("&", "&") return Response(response_xml, content_type="application/xml; charset=utf-8")