[ 
https://issues.apache.org/jira/browse/KNOX-791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sandeep More updated KNOX-791:
------------------------------
    Attachment: KNOX-237.001.patch

Patch that should fix this issue. 
*Short Description:*
It's a simple change (does affect all HTML rewrites !). The problem was with 
the way html attributes were looked up from the DOM tree. By default the method 
attribute.getvalue() assumes that the value is encoded, in our case the 
attribute value is not encoded, because of which the string "&#x" is treated as 
an encoded string which is the issue here.

As a fix, I am simply using the raw value and not the encoded value. 

> "&#x" render issue
> ------------------
>
>                 Key: KNOX-791
>                 URL: https://issues.apache.org/jira/browse/KNOX-791
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Prabhjyot Singh
>            Assignee: Sandeep More
>             Fix For: 0.11.0
>
>         Attachments: KNOX-237.001.patch, ss.png
>
>
> If "&#x" is used as a value for any attribute in any tag say <a> or <input> 
> then it is being treated/rendered different.
> An example to reproduce will be 
> {code:java}
> <input placeholder="&#xf002 Filter" style="font-family:FontAwesome">
> {code}
> The above should look like; !ss.png|screen shot!
> Or another example would be:
> {code:java}
> <a href="http://google.com/param1=123&#xparam2=890";>test link</a>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to