.4062073974432528:8efae86b0657150f8d9de735870fe133_69e8a6eb1ffbb16c7ee09048.69e8eb4b1ffbb16c7ee09237.69e8eb4a38522411e67a3e87:Trae CN.T(2026/4/22 23:37:47)#8
Open
CGW516 wants to merge 4 commits into
Conversation
added 4 commits
April 22, 2026 22:30
替换所有直接输出用户输入的EL表达式为c:out标签,防止XSS攻击 修改alert消息显示方式,通过隐藏div获取内容 修复schoolidstr的安全处理,添加默认值
在所有JSP页面中使用c:out标签输出用户输入内容,防止XSS攻击 将直接alert消息的方式改为通过隐藏div获取内容再提示,提高安全性 修复部分页面中的URL参数未转义问题
添加JSTL函数标签库(fn)用于XSS防护 使用fn:escapeXml处理消息提示中的潜在XSS风险 优化URL参数编码处理防止注入攻击 添加批量处理脚本用于统一修复JSP文件
移除手动URL编码/解码逻辑,依赖浏览器自动处理URL编码 简化JSP页面中的消息显示逻辑,去除冗余的<c:out>标签
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
refactor: 简化URL参数处理和消息显示逻辑
移除手动URL编码/解码逻辑,依赖浏览器自动处理URL编码
简化JSP页面中的消息显示逻辑,去除冗余的<c:out>标签