URI段。在它被转化为_
-
25-09-2019 - |
题
你好嗨这个问题,我呼吁这个网址:
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';
这似乎有助于为许多人。
资料来源:
不隶属于 StackOverflow