Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thanks haxtbh. you gave me an idea. Solved the issue.