diff --git a/bin/Mixer.py b/bin/Mixer.py
index 309bb32a..98709ea5 100755
--- a/bin/Mixer.py
+++ b/bin/Mixer.py
@@ -93,7 +93,7 @@ if __name__ == '__main__':
try:
#feeder_name = ( complete_paste.replace("archive/","") ).split("/")[0]
- feeder_name, paste_name = complete_paste.split('>')
+ feeder_name, paste_name = complete_paste.split('>>')
feeder_name.replace(" ","")
paste_name = complete_paste
diff --git a/bin/submit_paste.py b/bin/submit_paste.py
index db92d1db..345fa97e 100755
--- a/bin/submit_paste.py
+++ b/bin/submit_paste.py
@@ -29,8 +29,12 @@ def create_paste(uuid, paste_content, ltags, ltagsgalaxies, name):
addError(uuid, 'File: ' + save_path + ' already exist in submitted pastes')
return 1
- gzipencoded = gzip.compress(paste_content)
- gzip64encoded = base64.standard_b64encode(gzipencoded).decode()
+ try:
+ gzipencoded = gzip.compress(paste_content)
+ gzip64encoded = base64.standard_b64encode(gzipencoded).decode()
+ except:
+ abord_file_submission(uuid, "file error")
+ continue
# send paste to Global module
relay_message = "{0} {1}".format(save_path, gzip64encoded)
@@ -219,7 +223,7 @@ if __name__ == "__main__":
abord_file_submission(uuid, "file error")
continue
r_serv_log_submit.set(uuid + ':nb_total', 1)
- create_paste(uuid, content, ltags, ltagsgalaxies, uuid)
+ create_paste(uuid, content.encode(), ltags, ltagsgalaxies, uuid)
remove_submit_uuid(uuid)
else:
diff --git a/var/www/modules/PasteSubmit/templates/submiting.html b/var/www/modules/PasteSubmit/templates/submiting.html
index 9ab52465..b7ad78e3 100644
--- a/var/www/modules/PasteSubmit/templates/submiting.html
+++ b/var/www/modules/PasteSubmit/templates/submiting.html
@@ -187,7 +187,7 @@
ERROR
-
+
Submitted Pastes