Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeigniter: URI you submitted has disallowed characters

My URL is:

https://example.com/c3dlZXRfcmFqdmk5MUBob3RtYWlsLmNvbQ= 

When I remove = then it works fine.

I have this in config.php

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

Error:

The URI you submitted has disallowed characters. 

How can I allow = or == signs in URI?

I have tried it by changing this:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-='; // added = sign at the end 
like image 500
Ronak Patel Avatar asked Apr 21 '15 19:04

Ronak Patel


1 Answers

In /project-folder-name/application/config/config.php configure this variable:

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

it also works for @ character

like image 75
Angel Doza Avatar answered Oct 08 '22 11:10

Angel Doza