Ensure values of _s are encoded

Fixes gh-80
This commit is contained in:
Rob Winch
2014-12-17 17:37:29 -06:00
parent 375db97f1c
commit ddff1f4c0d
3 changed files with 84 additions and 5 deletions

View File

@@ -41,7 +41,10 @@
<li class="divider"></li>
</c:if>
<c:forEach items="${accounts}" var="account">
<li><a id="switchAccount${account.username}" href="${account.switchAccountUrl}"><c:out value="${account.username}"/></a></li>
<c:set var="encodedUsername">
<c:out value="${account.username}"/>
</c:set>
<li><a id="switchAccount${encodedUsername}" href="${account.switchAccountUrl}"><c:out value="${account.username}"/></a></li>
</c:forEach>
</ul>
</li>