Correctly handle quotes in attribute values for tag(x) files.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@651082
13f79535-47bb-0310-9956-
ffa450edef68
String value = attrs.getValue(i);
if (value.indexOf('"') != -1) {
quote = SINGLE_QUOTE;
+ value = value.replace("\"", DOUBLE_QUOTE);
}
out.print(quote);
out.print(value);
String value = attrs.getValue(i);
if (value.indexOf('"') != -1) {
quote = SINGLE_QUOTE;
+ value = value.replace("\"", DOUBLE_QUOTE);
}
out.print(quote);
out.print(value);