Skip to content

Commit 48869a8

Browse files
committed
consistent converting and escaping of label values (following AbstractMultiCheckedElementTag's SPR-7174)
1 parent a032ce1 commit 48869a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/tags/form/AbstractSingleCheckedElementTag.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2010 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -90,7 +90,7 @@ protected int writeTagContent(TagWriter tagWriter) throws JspException {
9090
if (resolvedLabel != null) {
9191
tagWriter.startTag("label");
9292
tagWriter.writeAttribute("for", id);
93-
tagWriter.appendValue(resolvedLabel.toString());
93+
tagWriter.appendValue(convertToDisplayString(resolvedLabel));
9494
tagWriter.endTag();
9595
}
9696

0 commit comments

Comments
 (0)