Skip to content

Commit 42ae6f4

Browse files
committed
Merge pull request #250 from UNC-Libraries/fix-title-quoting
Use <c:out /> to print thumbnail tooltip attribute values
2 parents 2062ab9 + da02297 commit 42ae6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

access/src/main/webapp/WEB-INF/jsp/common/thumbnail.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
</c:choose>
8787
</c:set>
8888

89-
<a href="${href}" title="${tooltip}" class="thumbnail ${empty src ? ' placeholder' : ''} ${deleted ? ' deleted' : ''} ${not empty tooltip ? ' has_tooltip' : ''} thumbnail-resource-type-${resourceType} thumbnail-size-${param.size}">
89+
<a href="${href}" title="<c:out value='${tooltip}' />" class="thumbnail ${empty src ? ' placeholder' : ''} ${deleted ? ' deleted' : ''} ${not empty tooltip ? ' has_tooltip' : ''} thumbnail-resource-type-${resourceType} thumbnail-size-${param.size}">
9090
<div class="thumbnail-placeholder">
9191
<c:if test="${not empty contentType}">
9292
<span class="thumbnail-content-type">${contentType}</span>

0 commit comments

Comments
 (0)