-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to edit the antisamy.xml to support the css-style "-webkit-border-radius" or "-moz-border-radius" #125
Comments
A few things here:
@davewichers or @spassarop - Can one of you speak to what needs to be done in terms of adding a policy for these two CSS styles and answer the question as to which is the earliest version of AntiSamy that would support it? Thanks. |
Hi everyone, in this comment I explain how to add an example policy definition fragment to support the That example only allows the literal value <regexp-list>
<!-- This allows values like "25px" -->
<regexp name="positiveLength"/>
<!-- This allows values like "25px 10px 5px 10px" -->
<regexp value="\d+px( \d+px){0,3}"/>
</regexp-list> The first is a reference, you can see the defined regexp value in the current All of the above works. However, it would not work with About the versions, I've tried with AntiSamy 1.5.4 and still works with that old version (defining style policy as I explained). |
Looking into Batik issues on JIRA I've found this: https://issues.apache.org/jira/browse/BATIK-1112 Which is that particular case. It's open since 2015 but there is a suggested workaround that might work for us. I'm downloading the Batik repo to see if the workaround can be copied or needs any modification, after that I'll check if it can be actually done on AntiSamy. |
@davewichers you can check my PR with the workaround. I didn't add the suggested |
Closing this issue as these changes went out with the 1.6.5 release I just pushed. |
Related to #293 |
when i call the ESAPI.validator().getValidSafeHTML with inputing "-webkit-border-radius" or "-moz-border-radius" ,the style will be Filtered。
does antisamy supports the style or not?
if support ,how can i config the antisamy.xml?
The text was updated successfully, but these errors were encountered: