From 40f176fa3ab4012710af8c397dc9d1bf16489111 Mon Sep 17 00:00:00 2001 From: riku Date: Wed, 19 Nov 2025 06:55:13 +0900 Subject: [PATCH] Fixed an issue where `Flight::request()->base` would display only a yen symbol in Windows environments without a parent directory. --- flight/net/Request.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flight/net/Request.php b/flight/net/Request.php index 4aa51f4..18d1692 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -173,6 +173,9 @@ class Request $base = str_replace(['\\', ' '], ['/', '%20'], $base); } $base = dirname($base); + if ($base === '\\') { + $base = '/'; + } $config = [ 'url' => $url, 'base' => $base,