Skip to content

Commit

Permalink
Consistently escape issue identification
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Dec 7, 2024
1 parent 89dc377 commit 17ac82b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/frontend/components/breadcrumbs_article.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{if $issue}
<li>
<a href="{url page="issue" op="view" path=$issue->getBestIssueId()}">
{$issue->getIssueIdentification()}
{$issue->getIssueIdentification()|escape}
</a>
<span class="separator">{translate key="navigation.breadcrumbSeparator"}</span>
</li>
Expand Down
2 changes: 1 addition & 1 deletion templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
</h2>
<div class="value">
<a class="title" href="{url page="issue" op="view" path=$issue->getBestIssueId()}">
{$issue->getIssueIdentification()}
{$issue->getIssueIdentification()|escape}
</a>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion templates/frontend/pages/indexJournal.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
{translate key="journal.currentIssue"}
</h2>
<div class="current_issue_title">
{$issue->getIssueIdentification()|strip_unsafe_html}
{$issue->getIssueIdentification()|escape}
</div>
{include file="frontend/objects/issue_toc.tpl" heading="h3"}
<a href="{url router=PKP\core\PKPApplication::ROUTE_PAGE page="issue" op="archive"}" class="read_more">
Expand Down
2 changes: 1 addition & 1 deletion templates/gateway/clockss.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<ul>
{foreach from=$issues item=issue}
<li><a href="{url page="issue" op="view" path=$issue->getBestIssueId()}">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></li>
<li><a href="{url page="issue" op="view" path=$issue->getBestIssueId()}">{$issue->getIssueIdentification()|escape}</a></li>
{/foreach}
</ul>

Expand Down
2 changes: 1 addition & 1 deletion templates/gateway/lockss.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<ul>
{foreach from=$issues item=issue}
<li><a href="{url page="issue" op="view" path=$issue->getBestIssueId()}">{$issue->getIssueIdentification()|strip_unsafe_html|nl2br}</a></li>
<li><a href="{url page="issue" op="view" path=$issue->getBestIssueId()}">{$issue->getIssueIdentification()|escape}</a></li>
{/foreach}
</ul>

Expand Down

0 comments on commit 17ac82b

Please sign in to comment.