0

I am trying to use getValidSafeHtml () function of esapi library but getting the following exception

org.owasp.esapi.errors.ConfigurationException : Couldn't find antisamy-esapi.xml

I have copied antisamy-esapi.xml in the same directory where I kept ESAPI.properties and validation.properties and both loads properly but getting antisamy-esapi.xml not found exception. Please help as I am stuck with this error from the last two days.

Any help would be appreciated.

Thanks in advance.

Vaibhav Mule
  • 5,016
  • 4
  • 35
  • 52
androidDev
  • 1,179
  • 4
  • 13
  • 31

1 Answers1

1

make a folder named 'esapi' at the path of ESAPI.properties, move antisamy-esapi.xml into the folder 'esapi', clean the project and try again~

|
|--ESAPI.properties
|--esapi
   |--antisamy-esapi.xml
Robert
  • 5,278
  • 43
  • 65
  • 115
daxiang
  • 19
  • 1
  • doesn't work and from looking at the source (DefaultSecurityConfiguration.java) it appears to want ".esapi" not "esapi" (not sure how to make a folder starting with a dot in windows using tomcat, but if there is a trick, I am game) – Richard Sandoz Sep 07 '17 at 19:14