Codeigniter:您提交的URI不允许使用字符 [英] Codeigniter: URI you submitted has disallowed characters

查看:76
本文介绍了Codeigniter:您提交的URI不允许使用字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网址是:

https://example.com/c3dlZXRfcmFqdmk5MUBob3RtYWlsLmNvbQ=

当我删除=时,它可以正常工作.

When I remove = then it works fine.

我在config.php

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

错误:

The URI you submitted has disallowed characters.

如何允许URI中的===标志?

How can I allow = or == signs in URI?

我通过更改此方法进行了尝试:

I have tried it by changing this:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-='; // added = sign at the end

推荐答案

在/project-folder-name/application/config/config.php中配置此变量:

In /project-folder-name/application/config/config.php configure this variable:

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

它也适用于@字符

这篇关于Codeigniter:您提交的URI不允许使用字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆