Welcome Guest, Not a member yet? Register   Sign In
Need Serious Help! Disallowed Key Characters.
#1

[eluser]mindprojects[/eluser]
Hi guys,
i've developed my entire app following tha basic config of Codeigniter:

$config['uri_protocol'] = "AUTO";

Now i need to get the variable importo from this return url from a payment gateway:

http://127.0.0.1/backoffice/adria/bookin...0&nome=qwe&$BRAND=MasterCard

So i changed:

$config['uri_protocol'] = "PATH_INFO";

and enabled query strings:

$config['enable_query_strings'] = TRUE;

Once done, i got this error message:
"Disallowed Key Characters."

What to do? I'm getting mad..

PS: I found that the problem is in the $ ($BRAND) character...but also escaping that char in the $config['permitted_uri_chars'] nothing is going to change.
#2

[eluser]mindprojects[/eluser]
The problem was due to the INPUT class,so i made this mod,adding '\$' into the range of the "_clean_input_keys" function:

function _clean_input_keys($str)
{
if ( ! preg_match("/^[a-z\$0-9:_\/-]+$/i", $str))
{
exit('Disallowed Key Characters.');
}

return $str;
}


Correct URL to manage:
http://127.0.0.1/backoffice/adria/bookin...0&nome=qwe&$BRAND=MasterCard

Now the next problem is that i can't get the URI SEGMENT N°4...How to do??
Someone over there?




Theme © iAndrew 2016 - Forum software by © MyBB