电子邮件中的 PHP 数据清理

发布于 2024-11-14 22:05:58 字数 95 浏览 9 评论 0原文

我的 PHP 脚本接收信息(来自用户提交的表单)并(几乎)立即作为电子邮件发送。我应该对数据进行什么样的清理?

我想确切地知道使用哪个 PHP 函数来清理数据。

My PHP scripts recieves information (from a user submitted form) and sends it (almost) straight away as an email. What kind of sainitization should I do on the data?

I want to know exactly which PHP function to use to sanitize the data.

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

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

发布评论

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

评论(3

月亮邮递员 2024-11-21 22:05:59

您需要:

You'll want to:

知足的幸福 2024-11-21 22:05:58

您需要阅读有关电子邮件注入的内容。看看这里:

http://www.damonkohler.com/2008/12/电子邮件注入.html

You need to read up on email injection. Take a look here:

http://www.damonkohler.com/2008/12/email-injection.html

苦妄 2024-11-21 22:05:58

查看 PHP 数据过滤。有很多内置的 php 函数可用于数据验证和清理。

Have a look at PHP Data Filtering. There are a lots of built in php functions which can be used for data validation and sanitization.

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