Subject: | GMail contacts importing broken |
Date: | Wed, 1 Apr 2009 12:16:53 -0400 |
To: | bug-WWW-Contact [...] rt.cpan.org |
From: | David Moreno <david [...] axiombox.com> |
Hello,
Recently, given a possible change on GMail's contacts system, the
results returned by get_contacts are messed up with some HTML.
To reproduce:
use WWW::Contact;
use Data::Dumper;
my $c = WWW::Contact->new;
print Dumper $c->get_contacts('my@gmail.com', 'my password');
outputs:
$VAR1 = {
'email' => 'kibbe@nabbr.com',
'name' => '<a href="?v=ct&ct_id=c6"
Show quoted text
>'
};
$VAR2 = {
'email' => '349997@bugs.debian.org',
'name' => '<a href="?v=ct&ct_id=df"
Show quoted text >'
};
$VAR3 = {
'email' => '470538@bugs.debian.org',
'name' => '<a href="?v=ct&ct_id=dc"
Show quoted text >'
};
$VAR4 = {
'email' => '470538-done@bugs.debian.org',
'name' => '<a href="?v=ct&ct_id=ef"
Show quoted text >'
};
$VAR5 = {
'email' => '472636@bugs.debian.org',
'name' => '<a href="?v=ct&ct_id=f8"
Show quoted text >'
};
....etc.
The email is fine but its corresponding name is not (also please not
the newline before the greater-than symbol).
As it is obvious, it should be some regex stopped working. Sadly, I
have not enough time right now to poke around with this and fix it. If
it doesn't get fixed, I could give a hand later this week (end (ish)).
David Moreno
http://twitter.com/damog