Skip to content

Commit

Permalink
Add missing escape for author
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 20, 2015
1 parent 1a4cd48 commit 99759ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nikola/data/themes/base-jinja/templates/index.tmpl
Expand Up @@ -20,7 +20,7 @@
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">
{% if author_pages_generated %}
<a href="{{ _link('author', post.author()) }}">{{ post.author() }}</a>
<a href="{{ _link('author', post.author()) }}">{{ post.author()|e }}</a>
{% else %}
{{ post.author()|e }}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion nikola/data/themes/base/templates/index.tmpl
Expand Up @@ -20,7 +20,7 @@
<div class="metadata">
<p class="byline author vcard"><span class="byline-name fn">
% if author_pages_generated:
<a href="${_link('author', post.author())}">${post.author()}</a>
<a href="${_link('author', post.author())}">${post.author()|h}</a>
% else:
${post.author()|h}
% endif
Expand Down

0 comments on commit 99759ad

Please sign in to comment.