Fixed an issue where `Flight::request()->base` would display only a yen symbol in Windows environments without a parent directory.

pull/666/head
riku 4 days ago
parent 854f668222
commit 40f176fa3a
No known key found for this signature in database
GPG Key ID: B3EDDFF1BC4BF3F4

@ -173,6 +173,9 @@ class Request
$base = str_replace(['\\', ' '], ['/', '%20'], $base); $base = str_replace(['\\', ' '], ['/', '%20'], $base);
} }
$base = dirname($base); $base = dirname($base);
if ($base === '\\') {
$base = '/';
}
$config = [ $config = [
'url' => $url, 'url' => $url,
'base' => $base, 'base' => $base,

Loading…
Cancel
Save