我需要 antixss 来打印报告吗

发布于 2024-09-09 23:36:06 字数 140 浏览 1 评论 0原文

我有一个报告网页,允许您将显示的记录导出到 Excel 文件。我正在使用 AntiXss 将它们显示在屏幕上,但是当用户选择导出到文件并且我再次从数据库获取记录时,我是否需要使用 AntiXss 进行清理以用于报告目的?

谢谢,

杆。

I have a report web page that allows you to export records shown to an excel file. I'm using AntiXss to display them on the screen but when a user opts to export to file and I go and get the records again from db will I need to use AntiXss to scrub for reporting purposes?

Thanks,

rod.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青柠芒果 2024-09-16 23:36:06

不会。AntiXss 用于防止跨站点脚本攻击 - Excel 文档不会受到这些攻击。即使 Excel 文件中有 XSS 代码,并且用户将 Excel 文件保存为 HTML(并将其加载到浏览器中),内容也会自动编码并且不会产生任何影响。

No. AntiXss is used to prevent Cross Site Scripting - an Excel document is not vunerable to these attacks. Even if you had XSS code in the Excel file and a user saved the Excel file as HTML (and loaded it in their browser), the content is automatically encoded and would have no effect.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文