Skip to content

Commit 2c39415

Browse files
committed
fix: improve wildcard sanitization logic in ListRoutes
1 parent 0ea1698 commit 2c39415

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mcp/Tools/ListRoutes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public function handle(array $arguments): ToolResult
5858
];
5959

6060
foreach ($optionMap as $argKey => $cliOption) {
61-
if (! empty($arguments[$argKey] ?? '')) {
61+
if (! empty($arguments[$argKey])) {
6262
$sanitizedValue = $this->sanitizeWildcards($arguments[$argKey], $argKey);
63-
if ($sanitizedValue !== '') {
63+
if (filled($sanitizedValue)) {
6464
$options['--'.$cliOption] = $sanitizedValue;
6565
}
6666
}

0 commit comments

Comments
 (0)