Make WordPress Core

Opened 4 years ago

Closed 8 weeks ago

#51485 closed defect (bug) (worksforme)

Wrong encoding of dynamic block properties

Reported by: sosere's profile sosere Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.5.1
Component: Charset Keywords:
Focuses: Cc:

Description

After update to 5.5.1 German umlauts in dynamic block properties ( strings ) are incorrectly encoded/saved in the database.
Something like this as request:
<!-- wp:hsu/mitarbeiterblock {"dataPostanschrift":["Universität","Fakultät für Elektrotechnik",""],
becomes (response & db):
<!-- wp:hsu/mitarbeiterblock {"dataPostanschrift":["Universitu00e4t","Fakultu00e4t fu00fcr Elektrotechnik",""]

To reproduce, modify a request and insert umlauts like öäü in properties of a block.

Change History (1)

#1 @desrosj
8 weeks ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hi @sosere,

Welcome to Trac! First, I apologize that it took so long for you to receive a response.

I've gone and tested this out in the latest version of WordPress (currently 6.6.1) and I'm unable to reproduce it. I'm going to close this out as worksforme, but if you're still able to reproduce the problem please reopen with more details.

Note: See TracTickets for help on using tickets.