diff options
author | Andrey Andreev <narf@bofh.bg> | 2013-03-04 13:59:53 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2013-03-04 13:59:53 +0100 |
commit | bb5cf0a51ce1aecf1dc5ebeb38336f59388321ef (patch) | |
tree | 81696844dd60466d1f1a1c0a4d8bbeb82f9a8b1c /system/core/Input.php | |
parent | fa01ae4b3a2ed51a93590527c04295eb8cba4e40 (diff) | |
parent | 8626e93d5b4362c86a58933dda9206ac8810476d (diff) |
Merge pull request #2190 from danhunsaker/feature/exit-status
Updated all CLI-valid cases of exit() to return a valid code
Diffstat (limited to 'system/core/Input.php')
-rw-r--r-- | system/core/Input.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/core/Input.php b/system/core/Input.php index 68a8fe03f..8d491e055 100644 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -745,7 +745,8 @@ class CI_Input { if ( ! preg_match('/^[a-z0-9:_\/|-]+$/i', $str)) { set_status_header(503); - exit('Disallowed Key Characters.'); + echo 'Disallowed Key Characters.'; + exit(EXIT_USER_INPUT); } // Clean UTF-8 if supported |