diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-10-24 22:29:50 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-10-25 14:47:33 +0200 |
commit | 726994ecaee5af9a8e1f91db9bb92fc5bf188530 (patch) | |
tree | 566cbad356ed1ebf974aa5dacbe9d8b95467472e /apps/dav/lib/Files/BrowserErrorPagePlugin.php | |
parent | c0adc3c2cf2b2b6568dd5c16e9b3b286d4933ee9 (diff) | |
download | nextcloud-server-726994ecaee5af9a8e1f91db9bb92fc5bf188530.tar.gz nextcloud-server-726994ecaee5af9a8e1f91db9bb92fc5bf188530.zip |
Remove any detailed information about the exception in the browser error plugin
Diffstat (limited to 'apps/dav/lib/Files/BrowserErrorPagePlugin.php')
-rw-r--r-- | apps/dav/lib/Files/BrowserErrorPagePlugin.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/apps/dav/lib/Files/BrowserErrorPagePlugin.php b/apps/dav/lib/Files/BrowserErrorPagePlugin.php index b58ce4df874..d6fad50b40d 100644 --- a/apps/dav/lib/Files/BrowserErrorPagePlugin.php +++ b/apps/dav/lib/Files/BrowserErrorPagePlugin.php @@ -80,28 +80,19 @@ class BrowserErrorPagePlugin extends ServerPlugin { } $this->server->httpResponse->addHeaders($headers); $this->server->httpResponse->setStatus($httpCode); - $body = $this->generateBody($ex); + $body = $this->generateBody(); $this->server->httpResponse->setBody($body); $this->sendResponse(); } /** * @codeCoverageIgnore - * @param \Exception $exception * @return bool|string */ - public function generateBody(\Exception $exception) { + public function generateBody() { $request = \OC::$server->getRequest(); $content = new OC_Template('dav', 'exception', 'guest'); $content->assign('title', $this->server->httpResponse->getStatusText()); - $content->assign('message', $exception->getMessage()); - $content->assign('errorClass', get_class($exception)); - $content->assign('errorMsg', $exception->getMessage()); - $content->assign('errorCode', $exception->getCode()); - $content->assign('file', $exception->getFile()); - $content->assign('line', $exception->getLine()); - $content->assign('trace', $exception->getTraceAsString()); - $content->assign('debugMode', \OC::$server->getSystemConfig()->getValue('debug', false)); $content->assign('remoteAddr', $request->getRemoteAddress()); $content->assign('requestID', $request->getId()); return $content->fetchPage(); |