CodeIgniter Forums

Full Version: _clean_input_keys in system/core/input.php uses exit() instead of show_error() and http status 400
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Bad Penguin[/eluser]
In system/core/input.php the function _clean_input_keys
output the error with:
Code:
exit('Disallowed Key Characters.');

shouldn't it use show_error to return a better HTTP status instead?
As already is done in system/core/URI.php
with:
Code:
show_error('The URI you submitted has disallowed characters.', 400);

??