This pull request fixes the CRLF injection vulnerability in the CRLFInjection.java file by adding a new class InputSanitizer to sanitize input strings. The sanitizeForCRLF method in the InputSanitizer class removes any carriage return (\r) and line feed (\n) characters from the input string.
Summary
Added InputSanitizer class to sanitize input strings for CRLF injection vulnerability.
Modified CRLFInjection.java to import InputSanitizer class and use the sanitizeForCRLF method to sanitize input strings.
Fixes #5.
🎉 Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request fixes the CRLF injection vulnerability in the
CRLFInjection.java
file by adding a new classInputSanitizer
to sanitize input strings. ThesanitizeForCRLF
method in theInputSanitizer
class removes any carriage return (\r
) and line feed (\n
) characters from the input string.Summary
InputSanitizer
class to sanitize input strings for CRLF injection vulnerability.CRLFInjection.java
to importInputSanitizer
class and use thesanitizeForCRLF
method to sanitize input strings.Fixes #5.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: