diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py
index e4dcd5a23..00a123235 100644
--- a/files/helpers/sanitize.py
+++ b/files/helpers/sanitize.py
@@ -83,7 +83,7 @@ allowed_styles =['color', 'font-weight', 'transform', '-webkit-transform']
def sanitize(sanitized, noimages=False):
- sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com")
+ sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com").replace("", "
")
for i in re.finditer('https://i.imgur.com/(([^_]*?)\.(jpg|png|jpeg))', sanitized):
sanitized = sanitized.replace(i.group(1), i.group(2) + "_d." + i.group(3) + "?maxwidth=9999")
diff --git a/files/templates/authforms.html b/files/templates/authforms.html
index 82ee2ac30..8834aa306 100644
--- a/files/templates/authforms.html
+++ b/files/templates/authforms.html
@@ -15,11 +15,11 @@
{% if v %}
-
- {% if v.agendaposter %}{% elif v.css %}{% endif %}
+
+ {% if v.agendaposter %}{% elif v.css %}{% endif %}
{% else %}
-
+
{% endif %}
diff --git a/files/templates/default.html b/files/templates/default.html
index 33d3ffd72..8c3cd08c9 100644
--- a/files/templates/default.html
+++ b/files/templates/default.html
@@ -250,12 +250,12 @@
{% if v %}
-
-
- {% if v.agendaposter %}{% elif v.css %}{% endif %}
+
+
+ {% if v.agendaposter %}{% elif v.css %}{% endif %}
{% else %}
-
+
{% endif %}
{% endblock %}
diff --git a/files/templates/email/default.html b/files/templates/email/default.html
index 476d4faa6..580b18956 100644
--- a/files/templates/email/default.html
+++ b/files/templates/email/default.html
@@ -6,366 +6,6 @@
-
diff --git a/files/templates/log.html b/files/templates/log.html
index 92df55b4e..e3d6dd025 100644
--- a/files/templates/log.html
+++ b/files/templates/log.html
@@ -17,11 +17,11 @@
{% if v %}
-
- {% if v.agendaposter %}{% elif v.css %}{% endif %}
+
+ {% if v.agendaposter %}{% elif v.css %}{% endif %}
{% else %}
-
+
{% endif %}
diff --git a/files/templates/login.html b/files/templates/login.html
index 3cc31fb7a..436281cc2 100644
--- a/files/templates/login.html
+++ b/files/templates/login.html
@@ -15,7 +15,7 @@
-
+
diff --git a/files/templates/login_2fa.html b/files/templates/login_2fa.html
index af423f219..e47bc15ff 100644
--- a/files/templates/login_2fa.html
+++ b/files/templates/login_2fa.html
@@ -12,7 +12,7 @@
2-Step Login - {{'SITE_NAME' | app_config}}
-
+
diff --git a/files/templates/settings.html b/files/templates/settings.html
index 842e2911c..9af0e6e45 100644
--- a/files/templates/settings.html
+++ b/files/templates/settings.html
@@ -55,8 +55,8 @@
-
- {% if v.agendaposter %}{% elif v.css %}{% endif %}
+
+ {% if v.agendaposter %}{% elif v.css %}{% endif %}
diff --git a/files/templates/settings2.html b/files/templates/settings2.html
index 548cc00b3..ba74a4576 100644
--- a/files/templates/settings2.html
+++ b/files/templates/settings2.html
@@ -40,10 +40,10 @@
{% if v %}
-
+
{% else %}
-
+
{% endif %}
diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html
index 433a7f242..130702bc1 100644
--- a/files/templates/sign_up.html
+++ b/files/templates/sign_up.html
@@ -36,7 +36,7 @@
-
+
diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html
index 4fc5d026f..eecbab287 100644
--- a/files/templates/sign_up_failed_ref.html
+++ b/files/templates/sign_up_failed_ref.html
@@ -31,7 +31,7 @@
-
+
diff --git a/files/templates/submit.html b/files/templates/submit.html
index f96d6651a..afb33e401 100644
--- a/files/templates/submit.html
+++ b/files/templates/submit.html
@@ -25,12 +25,12 @@
{% block stylesheets %}
{% if v %}
-
- {% if v.agendaposter %}{% elif v.css %}{% endif %}
+
+ {% if v.agendaposter %}{% elif v.css %}{% endif %}
{% else %}
-
-
+
+
{% endif %}
{% endblock %}