diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-11 14:14:02 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-09-17 13:17:52 +0200 |
commit | 6d3757f8648cb94b2ba04c6a5bfbc9dd1493103b (patch) | |
tree | 0cef084c3140b52a4ced70acc6ede3eb52cf33ab /core/templates/error.php | |
parent | 45b17207ccf03703d4d6c3925f5405f52579aee5 (diff) | |
download | nextcloud-server-6d3757f8648cb94b2ba04c6a5bfbc9dd1493103b.tar.gz nextcloud-server-6d3757f8648cb94b2ba04c6a5bfbc9dd1493103b.zip |
Do not show exception to the end-user
Log the error instead of potentially leaking sensitive information
Diffstat (limited to 'core/templates/error.php')
-rw-r--r-- | core/templates/error.php | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ <?php foreach($_["errors"] as $error):?> <li class='error'> <?php p($error['error']) ?><br/> - <p class='hint'><?php if(isset($error['hint']))print_unescaped($error['hint']) ?></p> + <?php if(isset($error['hint']) && $error['hint']): ?> + <p class='hint'><?php print_unescaped($error['hint']) ?></p> + <?php endif;?> </li> <?php endforeach ?> </ul> |