Welcome Guest, Not a member yet? Register   Sign In
Disallowed Key Characters - when all characters are allowed
#1

[eluser]diez[/eluser]
I recently upgraded CI from 1.7 to 2.0. There after i started receiving CI's

Code:
Disallowed Key Characters

error.

I then allowed all characters to be accepted to see if the error would disappear.

Code:
$config['permitted_uri_chars'] = '';
However, this did not change anything

i also have enabled query strings

Code:
$config['enable_query_strings'] = TRUE;

I just don't know why i am getting the disallowed characters error when i am allowing all characters to be accepted.

Here is a url example where i would get the disallowed key characters error:
http://localhost/myapp/index.php??c=user&m=login

However, if i were to remove one of the '?' it works
http://localhost/myapp/index.php?c=user&m=login

I do have an htaccess file that contains:

RewriteEngine on
RewriteRule (.*)/index.php $1/ [L]

The real issue i have it dealing with facebook callback urls/query strings after fb logins

any help?
#2

[eluser]diez[/eluser]
It looks like CodeIgniter does a separate check for GET/POST/and cookie data key names where it validates them against:

Code:
/^[a-z0-9:_\/-]+$/i
See: https://bitbucket.org/ellislab/codeignit...php#cl-537

I don't see an easy way to disable this check. However, that's seems a little hackish for me.

When i was using CI 1.7 i had the default characters allowed along with "?" ex:
Code:
a-z 0-9~%.:_-?
and had no problems with receiving disallowed key characters messages




Theme © iAndrew 2016 - Forum software by © MyBB