Merge branch 'develop' into merge/2025-03-24
This commit is contained in:
commit
4981e5ba36
18 changed files with 306 additions and 57 deletions
|
|
@ -68,7 +68,7 @@ export function createAiScriptEnv(opts: { storageKey: string, token?: string })
|
|||
}),
|
||||
'Mk:api': values.FN_NATIVE(async ([ep, param, token]) => {
|
||||
utils.assertString(ep);
|
||||
if (ep.value.includes('://')) {
|
||||
if (ep.value.includes('://') || ep.value.includes('..')) {
|
||||
throw new errors.AiScriptRuntimeError('invalid endpoint');
|
||||
}
|
||||
if (token) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue