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

  • Email, SSL
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Cara Reset Password Adminitrator Joomla

Normally, you can add, edit and delete users and passwords from the back-end User Manager. To do...

Fixed: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference

Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given...

Replace a failed harddisk in Linux software RAID

Ini adalah contoh anda memiliki 2 hard disk, /dev/sda dan /dev/sdb, dengan partisi /dev/sda1 dan...

Routing all mails to a smarthost with SMTP Authentication

Pergi ke halaman "Exim Configuration Editor" di WHM. Pilih "Advanced Editor". Add a...

Virtuozzo : RTNETLINK: Operation Not Supported

Here is a new bug which I faced on virtuozzo 4 and 4.6 for Centos 6 VPS.   VPS fails to...