Anope Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001692Anope Stable (2.0.x series)[All Projects] Generalpublic2016-11-24 03:422016-12-20 02:05
ReporterAnikwa 
Assigned ToAdam 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Summary0001692: XMLRPC Call Fails if Channel Topic has Colour.
DescriptionIf 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",
   ]
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0006820)
Adam (administrator)
2016-12-20 02:05

Reopen if this is still a problem.
(0006819)
Adam (administrator)
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 (reporter)
2016-11-24 21:45

One possible fix would be to remove any formatting from the topic before returning it

- Issue History
Date Modified Username Field Change
2016-11-24 03:42 Anikwa New Issue
2016-11-24 21:45 Anikwa Note Added: 0006817
2016-12-11 16:53 Adam Note Added: 0006819
2016-12-20 02:05 Adam Note Added: 0006820
2016-12-20 02:05 Adam Status new => closed
2016-12-20 02:05 Adam Assigned To => Adam
2016-12-20 02:05 Adam Resolution open => unable to reproduce


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker