Fix escaping issues by adding safe filters in more places (#678)

This commit is contained in:
Philipp Oppermann
2019-10-08 10:28:45 +02:00
committed by GitHub
parent 50aaa206bf
commit 7f4fc340ad
9 changed files with 15 additions and 15 deletions

View File

@@ -25,9 +25,9 @@
<header class="masthead">
<div style="position:relative">
<h1 class="masthead-title">
<a href="{{ config.base_url }}" title="Home">{{ config.title }} (Second Edition)</a>
<a href="{{ config.base_url | safe }}" title="Home">{{ config.title | safe }} (Second Edition)</a>
</h1>
<p><small>{{ config.extra.subtitle | replace(from=" ", to="&nbsp;")}}</small></p>
<p><small>{{ config.extra.subtitle | replace(from=" ", to="&nbsp;") | safe }}</small></p>
{% block header %}{% endblock header %}
</div>
</header>
@@ -40,7 +40,7 @@
<hr>
<small>
&copy; <time datetime="2019">2019</time>. All rights reserved.
<a href="{{ get_url(path="@/pages/contact.md") }}">Contact</a>
<a href="{{ get_url(path="@/pages/contact.md") | safe }}">Contact</a>
</small>
</footer>
</div>