Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] fix(link): Don't throw exception on invalid URL href #6795

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Dec 17, 2024

Backport of PR #6794

When pasting strings with invalid URLs, `new URL()` in `renderHTML()` of
the Link extension threw an error, which made the paste parser choke.

We should catch this exception and handle it gracefully to not break
HTML parsing completely with invalid URLs.

Signed-off-by: Jonas <[email protected]>
@backportbot backportbot bot requested review from juliusknorr and mejo- December 17, 2024 17:28
@backportbot backportbot bot added bug Something isn't working 3. to review labels Dec 17, 2024
@backportbot backportbot bot added this to the Nextcloud 29.0.11 milestone Dec 17, 2024
@mejo- mejo- merged commit c6dd421 into stable29 Dec 17, 2024
56 of 59 checks passed
@mejo- mejo- deleted the backport/6794/stable29 branch December 17, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant