Skip to content

Commit

Permalink
Fallback value for the SCRIPT_NAME prop
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Jan 10, 2025
1 parent 6a2620e commit 37e0530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

$domain = $_SERVER['HTTP_HOST'] ?? 'localhost';

$request_uri = dirname($_SERVER['SCRIPT_NAME']);
$request_uri = dirname($_SERVER['SCRIPT_NAME'] ?? 'index.php');

if ($request_uri === '.') {
$request_uri = '';
Expand Down

0 comments on commit 37e0530

Please sign in to comment.