Subject: | unknown URI schemes cause rewrite to fail |
When rewriting content in the &parse routine, the creation of new
URI::WithBase objects should be eval-wrapped. Otherwise,
MIME::Lite::HTML will fail when the HTML contains an href to a scheme
that URI doesn't now about -- like javascript.
In other words, this line:
my $urlAbs = URI::WithBase->new($$url[2],$racinePage)->abs;
should read:
my $urlAbs = eval { URI::WithBase->new($$url[2],$racinePage)->abs; };
--
rjbs