Skip to content

Shortcut URLs containing < are stored truncated or HTML-escaped #3793

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Shortcut URLs containing < are stored truncated or HTML-escaped. Cause: packages/web-pkg/src/components/CreateShortcutModal.vue:371-373 runs the HTML sanitizer DOMPurify on the URL.

Reproduction Steps

  1. "+ New" → Shortcut with URL https://example.com/search?q=x<2&lang=de.

Expected Outcome

The URL is stored as entered.

Actual Outcome

Stored as …q=x&lt;2&amp;lang=de (or cut off at <b), so the shortcut opens the wrong URL.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions