From ff0affc679410a5792cd65af6c2755cb532610d8 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Wed, 26 Sep 2018 11:59:51 +0200 Subject: [PATCH] fix: [Flask] remove hardcoded url --- .../modules/PasteSubmit/Flask_PasteSubmit.py | 9 ++++++ .../PasteSubmit/templates/PasteSubmit.html | 4 +-- .../templates/edit_tag_export.html | 10 +++---- .../PasteSubmit/templates/submiting.html | 4 +-- .../modules/Tags/templates/edit_galaxy.html | 14 ++++----- .../Tags/templates/edit_taxonomie.html | 10 +++---- var/www/modules/Tags/templates/galaxies.html | 8 ++--- .../Tags/templates/tag_galaxy_info.html | 8 ++--- var/www/modules/Tags/templates/tagged.html | 18 ++++++------ .../modules/Tags/templates/taxonomies.html | 8 ++--- .../dashboard/templates/searchbox.html | 2 +- .../modules/hashDecoded/Flask_hashDecoded.py | 2 +- .../hashDecoded/templates/hashDecoded.html | 29 +++++++++---------- .../hashDecoded/templates/showHash.html | 2 +- .../showpaste/templates/show_saved_paste.html | 4 +-- 15 files changed, 70 insertions(+), 62 deletions(-) diff --git a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py index 122fc74c..16930ef8 100644 --- a/var/www/modules/PasteSubmit/Flask_PasteSubmit.py +++ b/var/www/modules/PasteSubmit/Flask_PasteSubmit.py @@ -296,6 +296,11 @@ def submit(): submitted_tag = 'infoleak:submission="manual"' + #active taxonomies + active_taxonomies = r_serv_tags.smembers('active_taxonomies') + #active galaxies + active_galaxies = r_serv_tags.smembers('active_galaxies') + if ltags or ltagsgalaxies: if not addTagsVerification(ltags, ltagsgalaxies): content = 'INVALID TAGS' @@ -343,6 +348,8 @@ def submit(): launch_submit(ltags, ltagsgalaxies, paste_content, UUID, password ,True) return render_template("submiting.html", + active_taxonomies = active_taxonomies, + active_galaxies = active_galaxies, UUID = UUID) else: @@ -363,6 +370,8 @@ def submit(): launch_submit(ltags, ltagsgalaxies, paste_content, UUID, password) return render_template("submiting.html", + active_taxonomies = active_taxonomies, + active_galaxies = active_galaxies, UUID = UUID) else: diff --git a/var/www/modules/PasteSubmit/templates/PasteSubmit.html b/var/www/modules/PasteSubmit/templates/PasteSubmit.html index 1ed4831f..44058214 100644 --- a/var/www/modules/PasteSubmit/templates/PasteSubmit.html +++ b/var/www/modules/PasteSubmit/templates/PasteSubmit.html @@ -20,7 +20,7 @@ - + @@ -34,7 +34,7 @@ -
+ diff --git a/var/www/modules/PasteSubmit/templates/edit_tag_export.html b/var/www/modules/PasteSubmit/templates/edit_tag_export.html index 7921d1d7..04a506d6 100644 --- a/var/www/modules/PasteSubmit/templates/edit_tag_export.html +++ b/var/www/modules/PasteSubmit/templates/edit_tag_export.html @@ -15,10 +15,10 @@ - - - - + + + +