浏览代码

Add missing exception to 404 list.

mscherer 7 年之前
父节点
当前提交
4333076eb5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/Error/ErrorHandlerTrait.php

+ 2 - 0
src/Error/ErrorHandlerTrait.php

@@ -2,6 +2,7 @@
 
 namespace Tools\Error;
 
+use Cake\Controller\Exception\AuthSecurityException;
 use Cake\Controller\Exception\MissingActionException;
 use Cake\Controller\Exception\SecurityException;
 use Cake\Core\Configure;
@@ -47,6 +48,7 @@ trait ErrorHandlerTrait {
 		MissingTemplateException::class,
 		UnavailableForLegalReasonsException::class,
 		SecurityException::class,
+		AuthSecurityException::class,
 		'Cake\Network\Exception\BadRequestException',
 		'Cake\Network\Exception\ConflictException',
 		'Cake\Network\Exception\GoneException',