Skip to content

Git - improve graph/timeline/blame hover rendering#273932

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/dusty-platypus
Oct 29, 2025
Merged

Git - improve graph/timeline/blame hover rendering#273932
lszomoru merged 1 commit intomainfrom
lszomoru/dusty-platypus

Conversation

@lszomoru
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings October 29, 2025 11:12
@lszomoru lszomoru enabled auto-merge (squash) October 29, 2025 11:12
@lszomoru lszomoru self-assigned this Oct 29, 2025
@lszomoru lszomoru added the git GIT issues label Oct 29, 2025
@lszomoru lszomoru added this to the October 2025 milestone Oct 29, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves security in the Git extension's history hover tooltips by properly escaping user-provided content to prevent markdown injection attacks. The changes refactor how markdown strings are constructed for history item hovers.

Key changes:

  • Switched from string interpolation to using appendText() and appendMarkdown() methods to safely construct markdown
  • Added date validation to prevent invalid date rendering
  • Implemented escaping of image syntax (![) in commit messages to prevent markdown injection

@lszomoru lszomoru merged commit 8fb6a9c into main Oct 29, 2025
33 of 34 checks passed
@lszomoru lszomoru deleted the lszomoru/dusty-platypus branch October 29, 2025 12:15
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants