arunmanni-ai opened a new pull request, #1780: URL: https://github.com/apache/struts/pull/1780
The path normalization logic in Include.getContextRelativePath() used the legacy java.util.Stack class and did not handle the edge case where dot-dot segments exceed the available path depth. This patch: - Replaces java.util.Stack with ArrayDeque (recommended since JDK 6) - Adds an isEmpty() guard before pop() to handle excess dot-dot gracefully - Uses enhanced for-loop instead of indexed elementAt() iteration - Adds test coverage for edge case dot-dot paths -- 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]
