diff options
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': |