Knowledgebase

Portal Home > Knowledgebase > Fix Trubleshoting > Fixed: The URI you submitted has disallowed characters.

Fixed: The URI you submitted has disallowed characters.

In codeigniter 1.7.x version if you find “The URI you submitted has disallowed characters.” message then you can solve it easily by following the below steps.

Follow the following ways to fix this error. (assuming codeigniter 1.7.x)

1) in codeigiter system/libraries open URI.php line 189 you?ll find

if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))

change this code by

if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))

2. Now another changes in your system/application/config/config.php file. Go to the line 126

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

change this code by

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

After changes the code, save the file and refresh your browser.


sumber: technologyrider.com

Apakah ini membantu?
42 Pengguna Menemukan Ini Bermanfaat 85 Votes

Also Read