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

6 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
  3. I think the content covered in the blog is quiet impressive and brilliantly conveyed. Good job and great efforts. Keep it up.
    Web development Company in India Company | Web development Company Bangalore
    Web Development Company in Bangalore | Responsive Web development

    ReplyDelete