Welcome Guest, Not a member yet? Register   Sign In
URI submitted has disallowed characters
#1

[eluser]Angel Lay[/eluser]
It is worked before upgrading php 5.3.0

Codeigniter version is 1.7.1.

I tried :
[code ]
@ config .php
$config['permitted_uri_chars'] = '~%.:_\-';
[/code]

Code:
@URI.php
if ( ! preg_match("|^[\w".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))

Any idea for that?
Thanks.
#2

[eluser]Chathuranga Tennakoon[/eluser]
just remove the
Code:
preg_quote
function and check whether it is working
#3

[eluser]CroNiX[/eluser]
There are no letters/numbers allowed in your urls according to your permitted_uri_chars, which the stock version of CI does allow.
#4

[eluser]Angel Lay[/eluser]
I tried also with
$config[‘permitted_uri_chars’] = ‘a-z 0-9 ~%.:_\-’;

I tried also removing preg_quote.

It is still not working.





Theme © iAndrew 2016 - Forum software by © MyBB