dxbjavid commented on PR #900:
URL: 
https://github.com/apache/httpcomponents-client/pull/900#issuecomment-6288737706

   good catch on the spaces. i've changed it so a maximal run of CR/LF/NUL 
collapses to a single space, so a folded CRLF now leaves one space rather than 
a run of them, and updated the expected value to match (sid="abc Injected: 
evil").
   
   on the second point, agreed, this only neutralises the write-side injection 
vector and isn't meant to fully validate the name against the token grammar or 
the value against cookie-octet. i kept the change narrow to the CR/LF/NUL that 
split the header, matching what BufferedHeader.getValue() already does on 
read-back. happy to follow up with stricter cookie-name/cookie-value validation 
as a separate change if you'd like it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to