mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +01:00
Bug reporter opens multiple URLs when title has double-quote, fixes #42951
This commit is contained in:
@@ -470,7 +470,7 @@ export class IssueReporter extends Disposable {
|
||||
this.telemetryService.publicLog('issueReporterSubmit', { issueType: this.issueReporterModel.getData().issueType });
|
||||
}
|
||||
|
||||
const issueTitle = (<HTMLInputElement>document.getElementById('issue-title')).value;
|
||||
const issueTitle = encodeURIComponent((<HTMLInputElement>document.getElementById('issue-title')).value);
|
||||
const queryStringPrefix = product.reportIssueUrl.indexOf('?') === -1 ? '?' : '&';
|
||||
const baseUrl = `${product.reportIssueUrl}${queryStringPrefix}title=${issueTitle}&body=`;
|
||||
const issueBody = this.issueReporterModel.serialize();
|
||||
|
||||
Reference in New Issue
Block a user