summaryrefslogtreecommitdiffstats
path: root/application/errors
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-02-14 15:30:43 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-02-14 15:30:43 +0100
commitb43fab180d79feac25e25cba285730a48433564c (patch)
tree9d30615fcdaee9a186ce91a420c26b42cf01f6b7 /application/errors
parentf90f34c0c123b558b401e4583fc35a455dd6b7fd (diff)
Improve show_error() for cli clients
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/errors')
-rwxr-xr-xapplication/errors/error_general.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/errors/error_general.php b/application/errors/error_general.php
index 1d33e8652..da3999cbd 100755
--- a/application/errors/error_general.php
+++ b/application/errors/error_general.php
@@ -10,8 +10,8 @@ if (class_exists("CI_Controller") && !isset($GLOBALS["is_error_page"])) {
$CI->load->helper("url");
if (is_cli_client()) {
- echo $heading."\n";
- echo $message."\n";
+ $message = strip_tags($message);
+ echo "$heading: $message\n";
exit();
}