This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
1 | <?php |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
2 | declare(strict_types=1); |
||
3 | |||
4 | /** |
||
0 ignored issues
–
show
|
|||
5 | * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) |
||
6 | * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) |
||
0 ignored issues
–
show
|
|||
7 | * |
||
8 | * Licensed under The MIT License |
||
9 | * For full copyright and license information, please see the LICENSE.txt |
||
10 | * Redistributions of files must retain the above copyright notice. |
||
11 | * |
||
12 | * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) |
||
0 ignored issues
–
show
|
|||
13 | * @link https://cakephp.org CakePHP(tm) Project |
||
0 ignored issues
–
show
|
|||
14 | * @since 3.0.4 |
||
0 ignored issues
–
show
|
|||
15 | * @license https://opensource.org/licenses/mit-license.php MIT License |
||
0 ignored issues
–
show
|
|||
16 | */ |
||
0 ignored issues
–
show
|
|||
17 | namespace App\View; |
||
18 | |||
19 | /** |
||
20 | * A view class that is used for AJAX responses. |
||
21 | * Currently only switches the default layout and sets the response type - |
||
22 | * which just maps to text/html by default. |
||
0 ignored issues
–
show
|
|||
23 | */ |
||
0 ignored issues
–
show
|
|||
24 | class AjaxView extends AppView |
||
25 | { |
||
0 ignored issues
–
show
|
|||
26 | /** |
||
27 | * The name of the layout file to render the view inside of. The name |
||
28 | * specified is the filename of the layout in /templates/Layout without |
||
29 | * the .php extension. |
||
0 ignored issues
–
show
|
|||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | public $layout = 'ajax'; |
||
0 ignored issues
–
show
|
|||
34 | |||
35 | /** |
||
36 | * Initialization hook method. |
||
37 | * |
||
38 | * @return void |
||
0 ignored issues
–
show
|
|||
39 | */ |
||
40 | public function initialize(): void |
||
41 | { |
||
0 ignored issues
–
show
|
|||
42 | parent::initialize(); |
||
43 | |||
44 | $this->response = $this->response->withType('ajax'); |
||
45 | } |
||
0 ignored issues
–
show
|
|||
46 | } |
||
47 |