bug#43328: [PATCH] Make ERC desktop notifications lenient to invalid XML

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

bug#43328: [PATCH] Make ERC desktop notifications lenient to invalid XML

Dario Gjorgjevski
Hi,

Currently, ‘erc-notifications-notify’ signals an error if the message
contains invalid XML characters.  These characters can be either either
IRC control codes (e.g., ^B for bold text or ^C6,12 for colored text) or
just plain invalid data.

This patch changes the behavior so that they are stripped instead.  To
test, try sending yourself a message such as

   /msg <nick> ^BHi!

where <nick> is your own nick.  The current version will signal an error
whereas this patch won’t.

The proposed patch is attached to this message.



Best regards,
Dario

--
[hidden email] :: +49 1525 8666837
%   gpg --keyserver 'hkps://hkps.pool.sks-keyservers.net' \
\`>     --recv-keys '744A4F0B4F1C9371'

0001-Make-ERC-desktop-notifications-lenient-to-invalid-XM.patch (4K) Download Attachment