mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-10-24 23:13:35 +08:00
fix(vscode): tighten session ID regex to alphanumeric chars only
This commit is contained in:
@@ -112,7 +112,7 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
context.subscriptions.push(
|
||||
vscode.window.registerUriHandler({
|
||||
async handleUri(uri: vscode.Uri) {
|
||||
const match = uri.path.match(/^\/s\/(.+)$/)
|
||||
const match = uri.path.match(/^\/s\/([a-zA-Z0-9_-]+)$/)
|
||||
if (!match) return
|
||||
const sessionId = match[1]
|
||||
console.log("[Kilo New] URI handler: opening cloud session:", sessionId)
|
||||
|
||||
Reference in New Issue
Block a user