CodeIgniter Forums
_clean_input_keys in system/core/input.php uses exit() instead of show_error() and http status 400 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: _clean_input_keys in system/core/input.php uses exit() instead of show_error() and http status 400 (/thread-42263.html)



_clean_input_keys in system/core/input.php uses exit() instead of show_error() and http status 400 - El Forum - 06-01-2011

[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);

??