Log Message: |
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=56334
Merged r1590842 from tomcat/trunk:
Additional tests and fixes
Includes the following:
1. Allow '\' in xmlns attributes of UninterpretedTag. A test added.
(Java escaping was missing. Xml-escaping is still missing. I think it is unlikely that anybody would use such values for xmlns attributes)
2. Fix interaction between Validator.ValidateVisitor.checkXmlAttributes(CustomTag ..) and getJspAttribute().
- EL expression was parsed twice in both methods. Now I am passing the already parsed EL.
- getJspAttribute() has EL validation code, so reduce duplication
- When calling getJspAttribute() you have to pass original attrs.getValue(i), not the textual value.
3. Fix Validator.ValidateVisitor.XmlEscapeNonELVisitor
- It was not EL-escaping its text. Tests added.
|