你好嗨这个问题,我呼吁这个网址:

user_confirm/this.is.fake@gmail.com

然后用这个:

echo $email = $this->uri->segment(3);

和它的产出:

this_is_fake@gmail_com

为什么?

p.s.这是我的配置:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-@';

谢谢!

有帮助吗?

解决方案

system/application/config/config.php 设置:

$config['uri_protocol']  = 'REQUEST_URI';

这似乎有助于为许多人。

资料来源:

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top