Skip to content

[Backport 20.3.X] fix(@angular/build): escape prerender redirect URLs - #34509

Open
SkyZeroZx wants to merge 1 commit into
angular:20.3.xfrom
SkyZeroZx:fix/escape-prerender-redirect-urls-20.3.x
Open

SkyZeroZx wants to merge 1 commit into
angular:20.3.xfrom
SkyZeroZx:fix/escape-prerender-redirect-urls-20.3.x

Conversation

@SkyZeroZx

Copy link
Copy Markdown
Contributor

Backport #33248

Escape redirect targets before embedding them in the meta refresh tag and the fallback link of
generated static redirect pages.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces HTML escaping for URLs interpolated into static redirect pages during server-side rendering, preventing potential XSS vulnerabilities and ensuring correct HTML formatting. Unit and end-to-end tests have been added to verify the escaping behavior. I have no feedback to provide as there are no review comments to assess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant