Page 1 of 1
[bug] Custom Fields Json Encoding error
Posted: Mon Aug 12, 2024 11:19 am
by bayerberg
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.
Re: [bug] Custom Fields Json Encoding error
Posted: Mon Aug 12, 2024 5:52 pm
by Edi
Do you know when it happens?
You can report the bug here:
https://github.com/bludit/bludit/issues
Re: [bug] Custom Fields Json Encoding error
Posted: Tue Aug 13, 2024 10:10 am
by bayerberg
most of the time when I copy content from the text editor to custom field. this might be a simple fix using strip_tags();
Re: [bug] Custom Fields Json Encoding error
Posted: Tue Aug 13, 2024 11:49 am
by Edi
Thank you. I will try to reproduce it.
Re: [bug] Custom Fields Json Encoding error
Posted: Tue Aug 13, 2024 7:52 pm
by bayerberg
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