Sunday, September 16, 2012

The URI you submitted has disallowed characters. in codeigniter [solve]


[SOLVE]
first replace in config.php -$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';  to $config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-';

second - replace from  D:\xampp\htdocs\hes\system\libraries\URI.php
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))

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

i think you got my point and then working   good

5 comments:

  1. Where ( D:\xampp\htdocs\hes\system\libraries\URI.php
    if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str)))?

    ReplyDelete
  2. Hello its your codeigniter location drive. like codeigniter\system\libraries\URI.php

    ReplyDelete