diff options
| author | Takuma Ishikawa <nekketsuuu@users.noreply.github.com> | 2020-01-06 17:39:55 +0900 |
|---|---|---|
| committer | Yehonal <yehonal.azeroth@gmail.com> | 2020-01-06 09:39:55 +0100 |
| commit | f98b158f36f7b6323bca657d539ed60cfd723a8d (patch) | |
| tree | 4bf1048148a20be8703ac91d69e9f7874708edd2 /_includes/git-wiki/components/lists | |
| parent | 7b1cdbe4b08c1621364805d26b26194f3a1d3c92 (diff) | |
| download | wiki-f98b158f36f7b6323bca657d539ed60cfd723a8d.tar.gz wiki-f98b158f36f7b6323bca657d539ed60cfd723a8d.tar.bz2 wiki-f98b158f36f7b6323bca657d539ed60cfd723a8d.zip | |
Escape several strings, especially title (#71)
Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
Diffstat (limited to '_includes/git-wiki/components/lists')
| -rw-r--r-- | _includes/git-wiki/components/lists/page-list.html | 2 | ||||
| -rw-r--r-- | _includes/git-wiki/components/lists/post-list.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/_includes/git-wiki/components/lists/page-list.html b/_includes/git-wiki/components/lists/page-list.html index dea6758..8129bf0 100644 --- a/_includes/git-wiki/components/lists/page-list.html +++ b/_includes/git-wiki/components/lists/page-list.html @@ -15,7 +15,7 @@ {% if page.is_wiki_page != false and page.sitemap != false %} <li class="page-list-item"> {% assign title = page.title | default: page.name %} - <a href="{{ page.url | relative_url }}">{{title}}</a> + <a href="{{ page.url | relative_url }}">{{title | escape}}</a> </li> {% assign numPages = numPages | plus: 1 %} {% endif %} diff --git a/_includes/git-wiki/components/lists/post-list.html b/_includes/git-wiki/components/lists/post-list.html index d6fa663..579dab5 100644 --- a/_includes/git-wiki/components/lists/post-list.html +++ b/_includes/git-wiki/components/lists/post-list.html @@ -15,7 +15,7 @@ {% if post.layout != "null" and post.sitemap != false and post.title %} <li class="post-list-item"> - <a href="{{ post.url | relative_url }}">{{ post.title}}</a> + <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a> </li> {% assign numPages = numPages | plus: 1 %} {% endif %} |
