summaryrefslogtreecommitdiffstats
path: root/public_html/index.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-09-27 19:05:03 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-11-05 19:44:15 +0100
commita5235f5cdc947acb843645f6c01bd65fd8cec56d (patch)
tree560c2a9b75321757b70e6c2df02fb07cfd9adbb5 /public_html/index.php
parent53c8126583f33141014d0f86104637168571b89d (diff)
Drop plain text error handling
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'public_html/index.php')
-rw-r--r--public_html/index.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/public_html/index.php b/public_html/index.php
index 3c531e64c..6d81b244c 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -253,16 +253,12 @@ if ($testname) {
try {
require_once BASEPATH.'core/CodeIgniter.php';
} catch (\exceptions\NotAuthenticatedException $e) {
- if (is_cli_client()) {
- show_error(nl2br(htmlspecialchars($e->__toString())), $e->get_http_error_code());
- } else {
- $CI =& get_instance();
- $redirect_uri = $CI->uri->uri_string();
- if (isset($CI->data["redirect_uri"])) {
- $redirect_uri = $CI->data["redirect_uri"];
- }
- redirect("user/login?redirect_uri=".$redirect_uri);
+ $CI =& get_instance();
+ $redirect_uri = $CI->uri->uri_string();
+ if (isset($CI->data["redirect_uri"])) {
+ $redirect_uri = $CI->data["redirect_uri"];
}
+ redirect("user/login?redirect_uri=".$redirect_uri);
} catch (\exceptions\PublicApiException $e) {
show_error(nl2br(htmlspecialchars($e->__toString())), $e->get_http_error_code());
} finally {