-
-
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
[stable27] fix(dav): Always respond custom error page on exceptions #48297
Conversation
Signed-off-by: Louis Chemineau <[email protected]>
The `<?xml` tag is interpreted as PHP short tags, so this causes errors. Instead just print that part of the template. Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Louis Chemineau <[email protected]>
…utput Signed-off-by: Louis Chemineau <[email protected]>
} 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! to stable26 |
/backport! to stable25 |
Signed-off-by: Louis Chemineau <[email protected]>
a77cf76
to
6b026d8
Compare
Manual backport of: