We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89b396d + a560775 commit ffb1a39Copy full SHA for ffb1a39
1 file changed
lib/base.php
@@ -80,6 +80,7 @@
80
use OCP\Share;
81
use OCP\User\Events\UserChangedEvent;
82
use Psr\Log\LoggerInterface;
83
+use Symfony\Component\Routing\Exception\MethodNotAllowedException;
84
use function OCP\Log\logger;
85
86
require_once 'public/Constants.php';
@@ -1097,7 +1098,9 @@ public static function handleRequest(): void {
1097
1098
try {
1099
Server::get(\OC\Route\Router::class)->match('/error/404');
1100
} catch (\Exception $e) {
- logger('core')->emergency($e->getMessage(), ['exception' => $e]);
1101
+ if (!$e instanceof MethodNotAllowedException) {
1102
+ logger('core')->emergency($e->getMessage(), ['exception' => $e]);
1103
+ }
1104
$l = Server::get(\OCP\L10N\IFactory::class)->get('lib');
1105
OC_Template::printErrorPage(
1106
$l->t('404'),
0 commit comments