[
https://issues.apache.org/jira/browse/SLING-4631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14499796#comment-14499796
]
Antonio Sanso commented on SLING-4631:
--------------------------------------
[~cziegeler] your approach might have a little issue :)
We indeed escape the string...
{code}
Object prop = getProperty(varBuffer.toString());
if (prop != null) {
out.write(ResponseUtil.escapeXml(prop.toString()));
}
{code}
see the html you propose will be escaped and rendered as a text :p
> Improve the HtmlResponse template for pseudo-URL referrer
> ----------------------------------------------------------
>
> Key: SLING-4631
> URL: https://issues.apache.org/jira/browse/SLING-4631
> Project: Sling
> Issue Type: Improvement
> Components: Servlets
> Reporter: Antonio Sanso
> Assignee: Antonio Sanso
> Attachments: SLING-4631-patch.txt
>
>
> The HtmlResponse.html template in case of 500 error has a link to go back
> based on the referrer.
> This doesn't make sense in case of pseudo-URL referrer (e.g. data: )
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)