Skip to content

Commit 70d2d70

Browse files
committed
Use the \Config\Paths itself as a basis to be more secure.
1 parent b85a5aa commit 70d2d70

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

application/Config/Paths.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Paths
2020
* Include the path if the folder is not in the same directory
2121
* as this file.
2222
*/
23-
public $systemDirectory = FCPATH . '../system';
23+
public $systemDirectory = __DIR__ . '/../../system';
2424

2525
/*
2626
*---------------------------------------------------------------
@@ -35,7 +35,7 @@ class Paths
3535
*
3636
* NO TRAILING SLASH!
3737
*/
38-
public $applicationDirectory = FCPATH . '../application';
38+
public $applicationDirectory = __DIR__ . '/../../application';
3939

4040
/*
4141
* ---------------------------------------------------------------
@@ -48,7 +48,7 @@ class Paths
4848
* for maximum security, keeping it out of the application and/or
4949
* system directories.
5050
*/
51-
public $writableDirectory = FCPATH . '../writable';
51+
public $writableDirectory = __DIR__ . '/../../writable';
5252

5353
/*
5454
* ---------------------------------------------------------------
@@ -61,7 +61,7 @@ class Paths
6161
* for maximum security, keeping it out of the application and/or
6262
* system directories.
6363
*/
64-
public $testsDirectory = FCPATH . '../tests';
64+
public $testsDirectory = __DIR__ . '/../../tests';
6565

6666
/*
6767
* ---------------------------------------------------------------
@@ -87,5 +87,5 @@ class Paths
8787
* default this is in `application/Views`. This value
8888
* is used when no value is provided to `Services::renderer()`.
8989
*/
90-
public $viewDirectory = FCPATH . '../application/Views';
90+
public $viewDirectory = __DIR__ . '/../../application/Views';
9191
}

0 commit comments

Comments
 (0)