Skip to content

Remove encoding of HTML entities by the API#2296

Open
novasam23 wants to merge 2 commits into
masterfrom
2278-bug-changing-forbidden-characters-causes-fatal-error
Open

Remove encoding of HTML entities by the API#2296
novasam23 wants to merge 2 commits into
masterfrom
2278-bug-changing-forbidden-characters-causes-fatal-error

Conversation

@novasam23

Copy link
Copy Markdown
Contributor

Fixes #2278

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts API v2 database-to-JSON string decoding to decode both single and double quotes, aligning it with the existing DB encoding behavior and preventing malformed/incorrect config values (as described in #2278).

Changes:

  • Update html_entity_decode() flag from ENT_COMPAT to ENT_QUOTES for string-typed features in db2json().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@novasam23 novasam23 requested a review from jessevz July 2, 2026 06:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread src/inc/apiv2/common/AbstractBaseAPI.php
Comment thread src/inc/apiv2/common/AbstractBaseAPI.php
Comment thread src/inc/apiv2/common/AbstractBaseAPI.php
@novasam23 novasam23 changed the title Change flag for HTML entity decoding to ENT_QUOTES Remove encoding of HTML entities by the API Jul 2, 2026
@s3inlc

s3inlc commented Jul 2, 2026

Copy link
Copy Markdown
Member

Maybe it would make sense to write a pytest which tests creating and/or patching some object with some umlauts or other characters which would be affected by this htmlentities to verify for the future that it does not get added/changed by accident.

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.

[BUG]: Changing Forbidden characters causes fatal error

3 participants