1 Apr 2008 14:48
[JIRA] Created: (JAHIA-2759) HTML special characters (< nad &) not escaped in page title
HTML special characters (< nad &) not escaped in page title
-----------------------------------------------------------
Key: JAHIA-2759
URL: http://www.jahia.org/jira/browse/JAHIA-2759
Project: Jahia Content Management Server
Issue Type: Bug
Affects Versions: 5.0 SP3
Reporter: Jens Wilke
The method JahiaPage.getTitle() converts a text to html by calling TextHtml.text2html().
Special chars in html, thats < and &, are left as-is where umlaut characters are converted to
HTML entities.
I think this is a bug, all text supplied by the user should be displayed as entered, no
HTML input should be allowed.
OTOH an ampersand in a page title usually displays as expected right now, since the
browser parser is tolerant, but the page code is non XML-conform because the
ampersand is not an XML entity.
BTW: We don't need to escape umlauts at all, since the output charset is UTF-8.
--
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.jahia.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
(Continue reading)
RSS Feed