tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52335] Tomcat escapes all the \% in Template Text as %.
Date Thu, 15 Dec 2011 12:26:59 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52335

--- Comment #1 from Konstantin Kolinko <knst.kolinko@gmail.com> 2011-12-15 12:26:59
UTC ---
I agree that this is an issue.

The steps to reproduce, 7.0.23:
1. Create test.jsp containing the following line:
[[[ \% \\% <\% ]]]

2. Actual result:
The page is rendered as [[[ % \% <% ]]]
Expected result: [[[ \% \\% <% ]]] 


I agree that I do not see provisions for escaping single '%' in the JSP Spec.
In JSP.1.3.10.1 EBNF Grammar (in JSP 2.2 Spec) defines template text as
[[[
TemplateText ::= ( ‘<‘ | ‘${‘ | ‘#{‘ )
| ( TemplateChar* -
( TemplateChar* ( ‘<‘ | ‘${‘ | ‘#{‘ ) ) )

TemplateChar ::= ‘\$’
| ‘\#’
| ‘<\%’
| Char
[ vc : QuotedDollarMatched ]
]]]

The ‘<\%’ is explicitly mentioned, but not '\%'.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message