diff options
author | neptune | 2023-02-09 21:09:06 -0300 |
---|---|---|
committer | neptune | 2023-02-09 21:09:06 -0300 |
commit | aac2e666d261a197885b31fc40aeef76b12d5c51 (patch) | |
tree | df81e7b228cc9ab7f9fce1b1c3bc357c0857972f /cgi | |
parent | 7a3f94d73ed66432b90a5a3a1680b0848ff8ed8d (diff) | |
download | weabot-aac2e666d261a197885b31fc40aeef76b12d5c51.tar.gz weabot-aac2e666d261a197885b31fc40aeef76b12d5c51.tar.xz weabot-aac2e666d261a197885b31fc40aeef76b12d5c51.zip |
Arreglar HTML en News Channel
Diffstat (limited to 'cgi')
-rw-r--r-- | cgi/manage.py | 19 |
1 files 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", "<br />") - 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", "<br />") # If it's preferred to remain anonymous... if 'anonymous' in self.formdata and self.formdata['anonymous'] == '1': |