mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-11 22:52:54 +00:00
fix: drop tool IDs from the tools and tool-ids URL parameters that do not match a known tool (#29803)
This commit is contained in:
parent
b38755b21c
commit
a253bf0c32
1 changed files with 2 additions and 2 deletions
|
|
@ -2160,13 +2160,13 @@
|
|||
.get('tools')
|
||||
?.split(',')
|
||||
.map((id) => id.trim())
|
||||
.filter((id) => id);
|
||||
.filter((id) => id && ($tools ?? []).find((t) => t.id === id));
|
||||
} else if ($page.url.searchParams.get('tool-ids')) {
|
||||
selectedToolIds = $page.url.searchParams
|
||||
.get('tool-ids')
|
||||
?.split(',')
|
||||
.map((id) => id.trim())
|
||||
.filter((id) => id);
|
||||
.filter((id) => id && ($tools ?? []).find((t) => t.id === id));
|
||||
}
|
||||
|
||||
// Restore tool selection after OAuth redirect
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue