From aac2e666d261a197885b31fc40aeef76b12d5c51 Mon Sep 17 00:00:00 2001
From: neptune
Date: Thu, 9 Feb 2023 21:09:06 -0300
Subject: Arreglar HTML en News Channel
---
cgi/manage.py | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/cgi/manage.py b/cgi/manage.py
index f5ac69b..04d6d84 100644
--- a/cgi/manage.py
+++ b/cgi/manage.py
@@ -1880,17 +1880,14 @@ def manage(self, path_split):
# Insert new post
message = ''
- try:
- # Cut long lines
- message = self.formdata["message"]
- message = clickableURLs(html.escape(message).rstrip()[0:8000])
- message = onlyAllowedHTML(message)
- if Settings.USE_MARKDOWN:
- message = markdown(message)
- if not Settings.USE_MARKDOWN:
- message = message.replace("\n", "
")
- except:
- pass
+ # Cut long lines
+ message = self.formdata["message"]
+ #message = clickableURLs(html.escape(message).rstrip()[0:8000])
+ #message = onlyAllowedHTML(message)
+ if Settings.USE_MARKDOWN:
+ message = markdown(message)
+ if not Settings.USE_MARKDOWN:
+ message = message.replace("\n", "
")
# If it's preferred to remain anonymous...
if 'anonymous' in self.formdata and self.formdata['anonymous'] == '1':
--
cgit v1.2.1-18-gbd029