From c6f6dae87fced774eb993f3198e989aff5ad99e1 Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 16 Mar 2015 16:48:31 -0700 Subject: [PATCH] Prevent double / in templates/post/flag --- templates/post/flag.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/post/flag.html b/templates/post/flag.html index 0336fa17..1f423e87 100644 --- a/templates/post/flag.html +++ b/templates/post/flag.html @@ -3,7 +3,7 @@ {% if config.country_flags_condensed %} class="flag flag-{{ post.modifiers.flag }}" src="{{ config.image_blank }}" {% else %} - class="flag" src="{{ config.root }}{{ config.uri_flags|sprintf(post.modifiers.flag) }}" + class="flag" src="{% if config.root != '/' %}{{ config.root }}{% endif %}{{ config.uri_flags|sprintf(post.modifiers.flag) }}" {% endif %} style="{% if post.modifiers['flag style'] %} {{ post.modifiers['flag style'] }}