[bug] Custom Fields Json Encoding error

Post Reply
User avatar
bayerberg
Master Bludit
Posts: 153
Joined: Wed Jun 07, 2017 1:05 pm
Location: London, UK
Has thanked: 12 times
Been thanked: 20 times
Contact:

Sometimes data saved in custom fields has %EF%BB%BF at the beginning or end. Looks like json needs to be saved as UTF-8 without a BOM (byte-order mark).

I'm using MAMP /PHP8, running on a mac.
bludit plugins and themes - makeitblu | I do things, check them out on behance and dribbble.
User avatar
Edi
Site Admin
Posts: 3089
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 73 times
Been thanked: 107 times
Contact:

Do you know when it happens?

You can report the bug here:

https://github.com/bludit/bludit/issues
aufbruch1900.ch, Plattform zu Kunst und Kultur um 1900
User avatar
bayerberg
Master Bludit
Posts: 153
Joined: Wed Jun 07, 2017 1:05 pm
Location: London, UK
Has thanked: 12 times
Been thanked: 20 times
Contact:

most of the time when I copy content from the text editor to custom field. this might be a simple fix using strip_tags();
bludit plugins and themes - makeitblu | I do things, check them out on behance and dribbble.
User avatar
Edi
Site Admin
Posts: 3089
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 73 times
Been thanked: 107 times
Contact:

Thank you. I will try to reproduce it.
aufbruch1900.ch, Plattform zu Kunst und Kultur um 1900
User avatar
bayerberg
Master Bludit
Posts: 153
Joined: Wed Jun 07, 2017 1:05 pm
Location: London, UK
Has thanked: 12 times
Been thanked: 20 times
Contact:

Looks like the bug shows up when you have slashes at the end, for me it happens when I'm adding web addresses to custom fields
bludit plugins and themes - makeitblu | I do things, check them out on behance and dribbble.
Post Reply