Subject: | BUG in handling mixed attribute quote chars |
Date: | Mon, 25 Jun 2012 16:34:31 +0200 |
To: | bug-XML-Stream [...] rt.cpan.org |
From: | Bernhard Reutner-Fischer <rep.dot.nop [...] gmail.com> |
Hi,
In
http://grokbase.com/p/danga/djabberd/06a38tz24b/net-xmpp-connection-start
Mika Raento wrote on Oct 3, 2006 at 5:57 pm
Show quoted text
>Matt Mankins wrote:
>Hello.
>
>I am having some trouble with getting the perl module Net::XMPP::Client
>to work with DJabberd. Has anyone used this combo successfully?
No and yes. I encountered the same problem. The home-made XML parser
that is used by Net::XMPP is broken (as is error-checking in the client,
so it might not be the best option anyway). It misparses attributes
if there are both ' and " quoted attributes on the same element.
Try this:
--- Parser.pm 2006-10-03 16:32:38.663630700 +0300
+++ /usr/lib/perl5/site_perl/5.8/XML/Stream/Parser.pm 2006-10-03
16:24:50.262462000 +0300
@@ -383,7 +383,7 @@
$ids = $id1;
$id = "\'";
}
- if((($id2 < $id1) && ($id1 == -1)) || ($id2 != -1))
+ if((($id2 < $id1) && ($id2 != -1)) || ($id1 == -1))
{
$ids = $id2;
$id = "\"";
Mika
I think this bug is still present in the current 1.23 version.
thanks,