Skip to main content
Known Participant
Jun 8, 2015 8:10 AM UTC
Question

How to configure ESAPI?

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Inspiring
    Jun 8, 2015 8:41 AM UTC

    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.

    Translate
    chiemen06Author
    Known Participant
    Jun 8, 2015 10:28 AM UTC

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

    Translate