@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Alpha\Model\Type\Integer; |
| 6 | 6 | use Alpha\Model\Type\Timestamp; |
| 7 | -use Alpha\Model\Type\Enum; |
|
| 8 | 7 | use Alpha\Model\Type\Relation; |
| 9 | 8 | use Alpha\Util\Config\ConfigProvider; |
| 10 | 9 | use Alpha\Util\Logging\Logger; |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Alpha\Model\Type\Boolean; |
| 9 | 9 | use Alpha\Model\Type\Relation; |
| 10 | 10 | use Alpha\Util\Logging\Logger; |
| 11 | -use Alpha\Util\Config\Configprovider; |
|
| 12 | 11 | use Alpha\Util\Http\Session\SessionProviderFactory; |
| 13 | 12 | use Alpha\Exception\ValidationException; |
| 14 | 13 | use Alpha\Exception\FileNotFoundException; |
@@ -2,15 +2,15 @@ |
||
| 2 | 2 | |
| 3 | 3 | require_once __DIR__.'/../vendor/autoload.php'; |
| 4 | 4 | |
| 5 | -use Alpha\Controller\Front\FrontController; |
|
| 6 | -use Alpha\Util\Config\ConfigProvider; |
|
| 7 | -use Alpha\Util\Http\Filter\ClientBlacklistFilter; |
|
| 8 | -use Alpha\Util\Http\Filter\IPBlacklistFilter; |
|
| 9 | -use Alpha\Util\Http\Filter\ClientTempBlacklistFilter; |
|
| 10 | -use Alpha\Util\Http\Request; |
|
| 11 | -use Alpha\Util\Http\Response; |
|
| 12 | -use Alpha\Exception\ResourceNotFoundException; |
|
| 13 | -use Alpha\Exception\ResourceNotAllowedException; |
|
| 5 | +use Alpha\Controller\Front\FrontController; |
|
| 6 | +use Alpha\Util\Config\ConfigProvider; |
|
| 7 | +use Alpha\Util\Http\Filter\ClientBlacklistFilter; |
|
| 8 | +use Alpha\Util\Http\Filter\IPBlacklistFilter; |
|
| 9 | +use Alpha\Util\Http\Filter\ClientTempBlacklistFilter; |
|
| 10 | +use Alpha\Util\Http\Request; |
|
| 11 | +use Alpha\Util\Http\Response; |
|
| 12 | +use Alpha\Exception\ResourceNotFoundException; |
|
| 13 | +use Alpha\Exception\ResourceNotAllowedException; |
|
| 14 | 14 | use Alpha\View\View; |
| 15 | 15 | |
| 16 | 16 | try {
|
@@ -42,8 +42,9 @@ |
||
| 42 | 42 | $response = new Response(403, View::renderErrorPage(403, $rnae->getMessage(), array('Content-Type' => 'text/html')));
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | -if ($config->get('security.http.header.x.frame.options') != '')
|
|
| 46 | - $response->getHeader('X-Frame-Options', $config->get('security.http.header.x.frame.options'));
|
|
| 45 | +if ($config->get('security.http.header.x.frame.options') != '') { |
|
| 46 | + $response->getHeader('X-Frame-Options', $config->get('security.http.header.x.frame.options')); |
|
| 47 | +} |
|
| 47 | 48 | |
| 48 | 49 | echo $response->send(); |
| 49 | 50 | |