Merge pull request #666 from riku22/fix_request_base

Fixed an issue where `Flight::request()->base` would display only a yen symbol in Windows environments without a parent directory
master
n0nag0n 1 day ago committed by GitHub
commit d32e090fa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save