url含有特殊符号页面无法访问

浏览:669 发布日期:2017/09/08 分类:ThinkPHP5专区 关键字: THINKPHP 5
如题,比如说如下代码:
$text = '?abc&/';
$this->redirect('download', ['userName' => $text]);
生成的页面链接是
http://www.xxx.com/import/index/download/userName/%3Fabc%26%2F.html
但是无法进入download方法正常获取参数,会报错
The requested URL /import/index/download/userName/?abc&/.html was not found on this server.
请问如何处理,能够在url中传递含有特殊符号的参数

THINKPHP版本:TP5.0.11
最佳答案
评论( 相关
后面还有条评论,点击查看>>