From a0a639276cb30f3b6c67f4658c8f429a50b59658 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 29 Jun 2018 15:29:02 +0200 Subject: [PATCH] fix submit paste --- bin/submit_paste.py | 2 +- .../templates/base64Decoded.html | 159 +++++++++++------- 2 files changed, 100 insertions(+), 61 deletions(-) diff --git a/bin/submit_paste.py b/bin/submit_paste.py index 345fa97e..066fb846 100755 --- a/bin/submit_paste.py +++ b/bin/submit_paste.py @@ -34,7 +34,7 @@ def create_paste(uuid, paste_content, ltags, ltagsgalaxies, name): gzip64encoded = base64.standard_b64encode(gzipencoded).decode() except: abord_file_submission(uuid, "file error") - continue + return 1 # send paste to Global module relay_message = "{0} {1}".format(save_path, gzip64encoded) diff --git a/var/www/modules/base64Decoded/templates/base64Decoded.html b/var/www/modules/base64Decoded/templates/base64Decoded.html index 66f7829a..473dfe37 100644 --- a/var/www/modules/base64Decoded/templates/base64Decoded.html +++ b/var/www/modules/base64Decoded/templates/base64Decoded.html @@ -12,6 +12,7 @@ + @@ -20,6 +21,8 @@ + +