dqw / owaspantisamy

Automatically exported from code.google.com/p/owaspantisamy
0 stars 0 forks source link

style attributes of the image tag #103

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.      AntiSamy as = new AntiSamy();
        CleanResults cr = as.scan(input, policy);
        return cr.getCleanHTML();

What is the expected output? What do you see instead?
Expected Output
<img style="width: 79px; height: 85px;" 
src="https://localhost:8443/app/uploadimg/com.jpg"><br>

But I getting only one line java exception:

 java.lang.IllegalStateException

And there is no detail message or stacktrace for the exception.

What version of the product are you using? On what operating system?

1) OS: Windows XP
2) antisamy-bin1.1.3.jar
3) batik1.1.1.jar (Note: batik1.1.1 only work with antisamy 1.3. I tried with 
batik-css1.7. It did not work with antisamy1.3)
4) commons-httpclient-3.1.jar
5) nekohtml.jar

Please provide any additional information below.

I did not get any error/exception when there is no style attribute in the image 
tag. I want to pass style attributes of the image tag. I hope, someone will 
help me to solve this issue.

Original issue reported on code.google.com by firoj.bo...@gmail.com on 14 Mar 2011 at 12:52

GoogleCodeExporter commented 8 years ago
What policy file are you using? Please show the definition of the <img> tag in 
it, if it's a custom one.

Original comment by arshan.d...@gmail.com on 22 Mar 2011 at 12:19

GoogleCodeExporter commented 8 years ago
Nevermind, this is a dupe.

Original comment by arshan.d...@gmail.com on 22 Mar 2011 at 12:19