![]() |
Need Serious Help! Disallowed Key Characters. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Need Serious Help! Disallowed Key Characters. (/showthread.php?tid=12100) |
Need Serious Help! Disallowed Key Characters. - El Forum - 10-06-2008 [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/booking/doPayReport?importo=13300&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. Need Serious Help! Disallowed Key Characters. - El Forum - 10-06-2008 [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/booking/doPayReport/?importo=13300&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? |