Skip to content

Raise ValueError for invalid characters in DataURL.from_data - #18

Merged
telday merged 3 commits into
masterfrom
claude/issue-and-deps-arpdl8
Aug 11, 2026
Merged

Raise ValueError for invalid characters in DataURL.from_data#18
telday merged 3 commits into
masterfrom
claude/issue-and-deps-arpdl8

Conversation

@telday

@telday telday commented Aug 9, 2026

Copy link
Copy Markdown
Owner

DataURL.from_data would silently accept unquoted, non-percent-encoded
data when base64_encoded is False, producing invalid Data URLs (e.g.
data with spaces or other reserved characters). Validate the data
against the character set a Data URL allows and raise a ValueError
instead.

Fixes #17

claude added 3 commits August 10, 2026 23:44
DataURL.from_data would silently accept unquoted, non-percent-encoded
data when base64_encoded is False, producing invalid Data URLs (e.g.
data with spaces or other reserved characters). Validate the data
against the character set a Data URL allows and raise a ValueError
instead.

Fixes #17
Bump actions/checkout to v7, actions/setup-python to v7,
actions/upload-artifact to v7, and actions/download-artifact to v8.
Promotes the unreleased changelog entry to 1.4.0 and updates VERSION,
which setup.py reads when building the distribution.
@telday
telday force-pushed the claude/issue-and-deps-arpdl8 branch from 3fc56b6 to d52a48c Compare August 10, 2026 23:45
@telday
telday merged commit c885f0e into master Aug 11, 2026
1 check passed
@telday
telday deleted the claude/issue-and-deps-arpdl8 branch August 11, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Creating a URL with invalid characters should raise an error

2 participants