Skip to content

Change in behavior between 1.6.4 and 1.6.5 for getErrorMessages #151

@mjclemente

Description

@mjclemente

First - thank you for all the work that goes into Antisamy - really appreciate the active development and work that goes into it!

To begin - I did read the README and understand that getErrorMessages() does not answer the question as to whether input is safe or not. In light of that, you may not care about this change in behavior, but I thought it worth noting.

In version 1.6.4, the following input triggered an error message:

<img
    style="FLOAT: right; MARGIN: 0px 0px 10px 10px; WIDTH: 150px; CURSOR: hand; HEIGHT: 100px" alt=""
    src="http://www.charityadvantage.com/ChildrensmuseumEaston/images/BookswithBill.jpg" border="0" />

Calling getErrorMessages() would return:

The img tag had a style attribute, "CURSOR", that could not be allowed for security reasons.

As of 1.6.5, the message is no longer returned - though to be clear, the cursor property is still removed, as expected.

Is this change expected?

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions