简体   繁体   English

我如何以一种安全的方式对URL进行编码,以便在php的邮件头“位置”中使用它们?

[英]How can i encode urls in a safe way in order to use them in a mail header “location” in php?

How can i encode urls in a safe way in order to use them in a mail header "location" in php? 我如何以一种安全的方式对URL进行编码,以便在php的邮件头“位置”中使用它们?

Is urlencode enough? urlencode是否足够? May I use rfc2231_encode ? 我可以使用rfc2231_encode吗?

使用urlencode和urldecode我从未遇到过问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM