BNavin118206 (Community Member) asked a question.

Improper Neutralization of CRLF Sequences in HTTP Headers in java file.

response.setHeader("name", document.getOriginalFileName()); 

response.setContentType(document.getContentType());

 

hi i am getting above issue in this two line ,what shouid i do . already i applied below code of esapi but it shown compilation error.

 

DefaultHTTPUtilities httpUtilities = new DefaultHTTPUtilities(); 

httpUtilities.setHeader("name", document.getOriginalFileName()); 

httpUtilities.setContentType(document.getContentType());

 

but getting compilation error

error: cannot find symbol

ESAPI.httpUtilities().setHeader("name", document.getOriginalFileName()); 

error^cannot find symbol

ESAPI.httpUtilities().setContentType(document.getContentType());

 

please let me give me solution

 

thank you

           ^


Topics (4)

No articles found
Loading

Ask the Community

Get answers, share a use case, discuss your favorite features, or get input from the community.