Subject: | MozRepl::RemoteObject dies due to too generic regex in mozrepl continuation prompt check |
Date: | Sun, 25 Aug 2013 13:47:38 +0200 |
To: | bug-MozRepl-RemoteObject [...] rt.cpan.org |
From: | Daniel Stadie <daniel.stadie [...] jgency.de> |
Hi,
version information:
perl perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-gnu-thread-multi
WWW::Mechanize::Firefox 0.74
perl module MozRepl::RemoteObject 0.36
firefox mozrepl addon 1.1.2
firefox 17.0.8 ESR
description:
In MozRepl::RemoteObject a regex intended to find mozRepl continuation prompts is to generic so it fails on some html input:
wired HTML like
content="example.>br>"
is parsed to
content=\"example.>br>\"
which results in:
Continuation prompt found in [{"status":"ok","result":{"result":[{"result":"<html><head><meta name=\"description\" content=\"example.>br>\">\n</head><body>\n\n<p>sample</p>\n\n\n</body></html>","type":null},{"result":"ISO-8859-1","type":null}],"type":"list"}}] at /usr/local/perl/lib/perl5/MozRepl/RemoteObject.pm line 217.
steps to reproduce:
sample script and data attached
patch:
attached
Thanks for your great work on WWW::Mechanize::Firefox and your varoius
other modules!
Cheers,
Daniel.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.