arunmanni-ai opened a new pull request, #1737:
URL: https://github.com/apache/struts/pull/1737

   ### Summary
   
   This change ensures that content written to the response body during 
redirect handling is properly HTML-escaped when using HTTP 200 status.
   
   ### Changes
   
   - Apply HTML escaping before writing redirect location to response body
   - Add test to verify that special characters (e.g., `<`, `>`, `&`) are 
correctly escaped
   - Ensure no raw HTML content is rendered in the response body
   
   ### Test
   
   Added `testStatusCode200LocationIsHtmlEscapedInBody` to validate:
   - Redirect body output is safely escaped
   - No raw `<script>` content appears in the response
   
   ### Notes
   
   This improves safety when handling user-controlled input in redirect 
locations.


-- 
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]

Reply via email to