fix: 修正 SFTP 附加 URL 的正则表达式匹配规则
This commit is contained in:
1 parent
8d616cd87d
commit
8cb4d88b39
1 file changed
+1
-1
@@ -714,7 +714,7 @@ export class SSHSession {
|
||||
}
|
||||
|
||||
setSFTPAttachUrl(url: string): void {
|
||||
if (!/^\/api\/ssh\/sftp\?/.test(url)) throw new Error('Invalid SFTP attach URL');
|
||||
if (!/^\/api\/sftp\?/.test(url)) throw new Error('Invalid SFTP attach URL');
|
||||
this.sftpAttachUrl = url;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user