Skip to main content
Known Participant
June 8, 2015
Question

How to configure ESAPI?

  • June 8, 2015
  • 1 reply
  • 481 views

Hi,

I'm getting this error : Variable ESAPIENCODER is undefined.

my code is this:

<cfset esapi = CreateObject("java", "org.owasp.esapi.ESAPI") />

  <cfset esapiEncoder = esapi.encoder() />

not sure what I missed in the configuration.

I do appreciate any help.

Thanks in advance,

rdm

    This topic has been closed for replies.

    1 reply

    Inspiring
    June 8, 2015

    There is no other code referencing "esapiEncoder"? Usually this error occurs later on in the code when you try and reference something that doesn't exists. What you posted shouldn't give you that error.

    chiemen06Author
    Known Participant
    June 8, 2015

    Thanks haxtbh. you gave me an idea. Solved the issue.