Handle single quoted attributes in detection of jsp:root element in XML syntax JSP files.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1003923 13f79535-47bb-0310-9956-
ffa450edef68
&& Character.isWhitespace(root.charAt(index))) {
index++;
}
- if (index < root.length() && root.charAt(index++) == '"'
- && root.regionMatches(index, JSP_URI, 0,
- JSP_URI.length())) {
- return true;
+ if (index < root.length()
+ && (root.charAt(index) == '"' || root.charAt(index) == '\'')) {
+ index++;
+ if (root.regionMatches(index, JSP_URI, 0, JSP_URI.length())) {
+ return true;
+ }
}
}
<bug>49860</bug>: Add support for trailing headers in chunked HTTP
requests. (markt)
</fix>
+ <fix>
+ <bug>49987</bug>: Make jsp:root detection work with single quoted
+ attributes as well. (timw)
+ </fix>
</changelog>
</subsection>
<subsection name="Jasper">