Merge pull request #1343 from nextcloud/stable10-throw-exceptions-not-printable
[stable10] Don't print exception message in HTML
This commit is contained in:
commit
70231dcccf
|
@ -31,7 +31,6 @@ use Sabre\DAV\Server;
|
|||
use Sabre\DAV\ServerPlugin;
|
||||
|
||||
class BrowserErrorPagePlugin extends ServerPlugin {
|
||||
|
||||
/** @var Server */
|
||||
private $server;
|
||||
|
||||
|
@ -88,8 +87,7 @@ class BrowserErrorPagePlugin extends ServerPlugin {
|
|||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
* @param \Exception $ex
|
||||
* @param int $httpCode
|
||||
* @param \Exception $exception
|
||||
* @return bool|string
|
||||
*/
|
||||
public function generateBody(\Exception $exception) {
|
||||
|
@ -109,10 +107,11 @@ class BrowserErrorPagePlugin extends ServerPlugin {
|
|||
return $content->fetchPage();
|
||||
}
|
||||
|
||||
/*
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function sendResponse() {
|
||||
$this->server->sapi->sendResponse($this->server->httpResponse);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ style('core', ['styles', 'header']);
|
|||
?>
|
||||
<span class="error error-wide">
|
||||
<h2><strong><?php p($_['title']) ?></strong></h2>
|
||||
<p><?php p($_['message']) ?></p>
|
||||
<br>
|
||||
|
||||
<h2><strong><?php p($l->t('Technical details')) ?></strong></h2>
|
||||
|
|
Loading…
Reference in New Issue