From 6d3757f8648cb94b2ba04c6a5bfbc9dd1493103b Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 11 Sep 2014 14:14:02 +0200 Subject: Do not show exception to the end-user Log the error instead of potentially leaking sensitive information --- core/templates/error.php | 4 +++- core/templates/exception.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 core/templates/exception.php (limited to 'core') diff --git a/core/templates/error.php b/core/templates/error.php index e8b7a49264f..030fbf07fcb 100644 --- a/core/templates/error.php +++ b/core/templates/error.php @@ -2,7 +2,9 @@

  • -

    + +

    +
  • diff --git a/core/templates/exception.php b/core/templates/exception.php new file mode 100644 index 00000000000..a5944e491cc --- /dev/null +++ b/core/templates/exception.php @@ -0,0 +1,28 @@ + + +


    +

    t('The server encountered an internal error and was unable to complete your request.')) ?>

    +

    t('Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.')) ?>

    +

    t('More details can be found in the server log.')) ?>

    +
    +

    t('Technical details')) ?>

    + + + +
    +

    t('Trace')) ?>

    +
    + +
    -- cgit v1.2.3 From d66a8daf7ff3a7bb8bbb4183e3f156dfc256e7f8 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 11 Sep 2014 15:27:27 +0200 Subject: replace horizontal rules with whitespace --- core/templates/exception.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/templates/exception.php b/core/templates/exception.php index a5944e491cc..cf0e4c74825 100644 --- a/core/templates/exception.php +++ b/core/templates/exception.php @@ -3,11 +3,12 @@ /** @var OC_L10N $l */ ?> -


    +

    t('The server encountered an internal error and was unable to complete your request.')) ?>

    t('Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.')) ?>

    t('More details can be found in the server log.')) ?>

    -
    +
    +

    t('Technical details')) ?>

    • t('Remote Address: %s', $_['remoteAddr'])) ?>
    • @@ -21,7 +22,7 @@
    -
    +

    t('Trace')) ?>

    -- cgit v1.2.3