We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e0e8f83 + 9f6bf3f commit dd39902Copy full SHA for dd39902
2 files changed
system/Commands/Server/Serve.php
@@ -103,7 +103,7 @@ public function run(array $params)
103
$docroot = escapeshellarg(FCPATH);
104
105
// Mimic Apache's mod_rewrite functionality with user settings.
106
- $rewrite = escapeshellarg(__DIR__ . '/rewrite.php');
+ $rewrite = escapeshellarg(SYSTEMPATH . 'rewrite.php');
107
108
// Call PHP's built-in webserver, making sure to set our
109
// base path to the public folder, and to use the rewrite file
system/Commands/Server/rewrite.php system/rewrite.phpsystem/Commands/Server/rewrite.php renamed to system/rewrite.php
@@ -21,11 +21,6 @@
21
*/
22
23
// @codeCoverageIgnoreStart
24
-// Avoid this file run when listing commands
25
-if (PHP_SAPI === 'cli') {
26
- return;
27
-}
28
-
29
$uri = urldecode(
30
parse_url('https://codeigniter.com' . $_SERVER['REQUEST_URI'], PHP_URL_PATH) ?? ''
31
);
0 commit comments