File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function run(array $params)
103
103
$ docroot = escapeshellarg (FCPATH );
104
104
105
105
// Mimic Apache's mod_rewrite functionality with user settings.
106
- $ rewrite = escapeshellarg (__DIR__ . '/ rewrite.php ' );
106
+ $ rewrite = escapeshellarg (SYSTEMPATH . 'rewrite.php ' );
107
107
108
108
// Call PHP's built-in webserver, making sure to set our
109
109
// base path to the public folder, and to use the rewrite file
Original file line number Diff line number Diff line change 21
21
*/
22
22
23
23
// @codeCoverageIgnoreStart
24
- // Avoid this file run when listing commands
25
- if (PHP_SAPI === 'cli ' ) {
26
- return ;
27
- }
28
-
29
24
$ uri = urldecode (
30
25
parse_url ('https://codeigniter.com ' . $ _SERVER ['REQUEST_URI ' ], PHP_URL_PATH ) ?? ''
31
26
);
You can’t perform that action at this time.
0 commit comments