|
@@ -211,9 +211,9 @@ |
|
|
block discarded – undo |
|
211
|
211
|
public function afterException($controller, $methodName, \Exception $exception): Response { |
|
212
|
212
|
if ($exception instanceof SecurityException) { |
|
213
|
213
|
if ($exception instanceof StrictCookieMissingException) { |
|
214
|
|
- return new RedirectResponse(\OC::$WEBROOT . '/'); |
|
|
214
|
+ return new RedirectResponse(\OC::$WEBROOT.'/'); |
|
215
|
215
|
} |
|
216
|
|
- if (stripos($this->request->getHeader('Accept'),'html') === false) { |
|
|
216
|
+ if (stripos($this->request->getHeader('Accept'), 'html') === false) { |
|
217
|
217
|
$response = new JSONResponse( |
|
218
|
218
|
['message' => $exception->getMessage()], |
|
219
|
219
|
$exception->getCode() |
Please login to merge, or discard this patch.