Syndication and weird chars
#1
Hi there,

I manage a technical forum where often my users post scripts or snippets, and they sometime contain weird characters (control code).
No trouble with the forum itself but it brokes the syndication feed with some readers.

So, the solution I found was to remove non-printable chars from the message:
syndication.php#L228

Modified line:
$items[$post['tid']]['description'] = preg_replace('/[[:^print:]]/', '', $parsed_message);

PR #4462
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM or Discord
Reply


Messages In This Thread
Syndication and weird chars - by Crazycat - 2021-10-06, 02:35 PM
RE: Syndication and weird chars - by Omar G. - 2021-10-14, 06:59 PM
RE: Syndication and weird chars - by Crazycat - 2021-10-14, 10:11 PM
RE: Syndication and weird chars - by Omar G. - 2021-10-15, 07:07 AM
RE: Syndication and weird chars - by Crazycat - 2021-10-15, 08:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)