0

I have this simple URL which generated by codeigniter encryption class (CI3.1.3)

http://localhost/pothdekhun/routes/map/c25075fb22389ec4f07fcdf808ebd9cb8722507ba471f21daebf3aea2fd72cf37a31f4e609b7f92348db5ca83015461f1b3ae38b2ca4ef2ced1fea02032fa33eu5lVujYy3cwTnlCZJS4545XqvLoQYQr1/Mirpur/Dhaka/Kuril+Bishwa+Road/Khilkhet/Dhaka

This is always showing me

An Error Was Encountered

The URI you submitted has disallowed characters.

My config file

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

I have tried a-z 0-9~%.:_\-+ and a-z 0-9~%.:_\-\+ nothing happened. Keeping empty is not possible.

Second Ques: Is it possible to change permitted_uri_chars only for any particular method? I have tried in routes controller's map method

$this->config->set_item('permitted_uri_chars','');

not worked

4
  • we have permitted characters defined in config file it wont allow another characters if we want to use you can add that symbol in config file... Commented Feb 16, 2017 at 11:58
  • If the info needs to be encrypted, it has no place in a URL. Commented Feb 17, 2017 at 14:49
  • @RejoanulAlam any update ? solved ? Commented Feb 19, 2017 at 6:32
  • @AbdullaNilam yes, I have solved by allowing a-z 0-9~%.:_\-\+=, in config.php. I am observing now, if its raise any security issue then I'll go POST method Commented Feb 19, 2017 at 8:38

1 Answer 1

1

1) Modify File:

(application_folder)/config/config.php

2) Find For: "permitted_uri_chars"

3) Change the value to :

a-z 0-9~%.:_\-\+= --> $config['permitted_uri_chars'] =  'a-z 0-9~%.:_\-\+=';
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.