-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable30] fix(dav): Always respond custom error page on exceptions #47787
Conversation
Signed-off-by: Louis Chemineau <louis@chmn.me>
} else { | ||
$templateName = 'xml_exception'; | ||
$renderAs = null; | ||
$this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8'); |
Check notice
Code scanning / Psalm
PossiblyNullPropertyFetch Note
} else { | ||
$templateName = 'xml_exception'; | ||
$renderAs = null; | ||
$this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8'); |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
$content = new OC_Template('core', $templateName, 'guest'); | ||
$debug = $this->config->getSystemValueBool('debug', false); | ||
|
||
$content = new OC_Template('core', $templateName, $renderAs); |
Check notice
Code scanning / Psalm
PossiblyNullArgument Note
if (BrowserErrorPagePlugin::isBrowserRequest($request)) { | ||
$this->server->addPlugin(new BrowserErrorPagePlugin()); | ||
} | ||
$this->server->addPlugin(new ErrorPagePlugin($this->request, \OC::$server->getConfig())); |
Check notice
Code scanning / Psalm
DeprecatedMethod Note
Backport of PR #47770