所提交的网址带有不被接受的字符 [英] The URI you submitted has disallowed characters

查看:166
本文介绍了所提交的网址带有不被接受的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个代码点火器项目,我想尝试使用Zend Studio对其进行调试。当我开始调试时,我立即运行ino

I have a code igniter project, and I wanted to try debugging it using Zend Studio. WHen I start debugging, I immediately run ino

您提交的URI不允许使用字符。

"The URI you submitted has disallowed characters."

有有人知道吗?

推荐答案

(假设您使用的是最新版本的CodeIgniter(CI),即1.7.0)

(Assuming you are using the latest version of CodeIgniter (CI) which is 1.7.0)

CI对于URL中允许使用的字符非常严格。您可以修改用于过滤URL的正则表达式。

CI is pretty strict about what characters it allows in URLs. You can modify the regex that is used to filter URLs.

在system / config / config.php中,第126行是

In system/config/config.php on line 126 is

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

此行上方的注释几乎解释了所有内容,以及用于替代的前哨值

The comment above this line pretty much explains it all, and what sentinel value to use to over-ride this filter and permit all characters (i.e. turn off filtering completely).

另一方面,我发现CI的限制过于严格(因为其中之一不允许GET要求并希望所有交互都通过POST进行,我发现这绝对是疯狂的,类似于将婴儿扔出洗澡水。显然,我并不是唯一认为CI过于严格的人,Kohana Project是一个分支。 CI +优化,即纯php5支持(所有OO)(CI仍与PHP4兼容,但无法利用PHP5 OO功能)。

On a side note, I found CI to be way too restrictive (for one it doesnt allow for GET requests and wants all interactions to happen via POST. I find this absolutely crazy and is akin to throwing the baby out with the bath water. Apparently, I am not the only one who thinks that CI is overly restrictive, the Kohana Project is a fork of CI + optimizations, namely pure php5 support (all OO), (CI is still PHP4 compatible at the expense of not being able to take advantage of PHP5 OO capabilities).

相对于CI,YMMV,我更喜欢Kohana

I prefer Kohana over CI, YMMV

http:// kohanaphp。 com / home

这篇关于所提交的网址带有不被接受的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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