CodeIgniter:不允许键Chrome中的字符 [英] CodeIgniter : Disallowed key Characters in Chrome

查看:161
本文介绍了CodeIgniter:不允许键Chrome中的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CodeIgniter,我收到以下错误:

I'm using CodeIgniter and I'm getting the following error:

Disallowed Key Characters.

这只会在Chrome中发生。我试过它在Firefox和它的工作很好。
我不使用cookie,字符或方法get。

This only happens in Chrome. I've tried it in Firefox and it is working well. I don't use cookies, character #, or method "get".

我需要帮助如何解决这个问题。

I need help how to solve this.

感谢

推荐答案

要允许字符#您的CONFIG文件中的以下内容:

To allow the character # just add it in the following in your CONFIG file -

$config['permitted_uri_chars'] = '\#';

现在字符#将被允许。

这篇关于CodeIgniter:不允许键Chrome中的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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