Skip to content

fix: prevent favicon-group crashes from malformed source URLs#16

Open
georgestander wants to merge 1 commit into
mainfrom
bugfix/favicon-group-safe-url-parsing
Open

fix: prevent favicon-group crashes from malformed source URLs#16
georgestander wants to merge 1 commit into
mainfrom
bugfix/favicon-group-safe-url-parsing

Conversation

@georgestander
Copy link
Copy Markdown
Owner

Summary

  • remove direct new URL(source.url) usage from FaviconGroup
  • use safe hostname parsing with a stable fallback (unknown)
  • reuse getGoogleFaviconUrl helper for robust favicon URL generation
  • add targeted unit tests for valid and invalid URL inputs

Validation

  • pnpm exec vitest run components/favicon-group.test.ts lib/url-utils.test.ts

@georgestander georgestander added codex Changes created by Codex codex-automation Changes created by Codex automation labels Mar 3, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 3, 2026

Changelog Preview

No valid changelog bullets were found under ## Changelog.

Add at least one bullet in the PR body, or apply the skip-changelog label.

Checked on 2026-03-03T06:05:59.256Z

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

Labels

codex Changes created by Codex codex-automation Changes created by Codex automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant