Anope Bug Tracker - Anope Stable (2.0.x series)
View Issue Details
0001692Anope Stable (2.0.x series)[All Projects] Generalpublic2016-11-24 03:422016-12-20 02:05
Anikwa 
Adam 
normalminoralways
closedunable to reproduce 
0001692: XMLRPC Call Fails if Channel Topic has Colour.
If a channel topic has mIRC colour codes in it, XMLRPC call fails with the error: "expat reports error code 4"


Psy Shell v0.7.2 (PHP 7.0.8-0ubuntu0.16.04.3 — cli) by Justin Hileman
>>> $anope = new UKBB\Anope;
=> UKBB\Anope {0000880}
>>> $anope->channel('#Lobby');
expat reports error code 4
        description: not well-formed (invalid token)
        line: 34
        column: 17
        byte index: 463
        total bytes: 0

        data beginning 10 before byte index: >[13,9916+] 04,99Welcome to the Lobby on UKBlabberbox! || => null

Whereas without color:

>>> $anope->channel('#Lobby');
=> [
     "bancount" => "0",
     "exceptcount" => "0",
     "invitecount" => "0",
     "name" => "#Lobby",
     "topic" => "[16+] Welcome to the Lobby on UKBlabberbox! || If you need help, please join #help",
     "topicsetter" => "Sketch",
     "topictime" => "1479951703",
     "topicts" => "1479951703",
     "users" => "~@UKBlabberbox %Sketch *@JustifiedkNot ~@Gateway",
   ]
No tags attached.
Issue History
2016-11-24 03:42AnikwaNew Issue
2016-11-24 21:45AnikwaNote Added: 0006817
2016-12-11 16:53AdamNote Added: 0006819
2016-12-20 02:05AdamNote Added: 0006820
2016-12-20 02:05AdamStatusnew => closed
2016-12-20 02:05AdamAssigned To => Adam
2016-12-20 02:05AdamResolutionopen => unable to reproduce

Notes
(0006820)
Adam   
2016-12-20 02:05   
Reopen if this is still a problem.
(0006819)
Adam   
2016-12-11 16:53   
I can't reproduce this locally, it strips the chr(3) from the output as it can't be represented in xml.
(0006817)
Anikwa   
2016-11-24 21:45   
One possible fix would be to remove any formatting from the topic before returning it