Subject: | [PATCH] ticket_url not expanded into URL in HTML.pm |
The result of the match against the ticket_regex is substituted into
the message text correctly but not into the URL href: $2 is
accidentally used instead of using $1 a second time. Patch attached.
Subject: | HTML.pm.patch |
*** lib/SVN/Notify/HTML.pm.orig 2006-03-29 16:20:23.000000000 +0100
--- lib/SVN/Notify/HTML.pm 2006-03-29 16:24:55.000000000 +0100
***************
*** 290,296 ****
or die q{Missing "ticket_regex" parameter to accompany }
. q{"ticket_url" parameter};
$url = encode_entities($url, '<>&"');
! $msg =~ s|$regex|sprintf qq{<a href="$url">$1</a>}, $2|ige;
}
else {
--- 290,296 ----
or die q{Missing "ticket_regex" parameter to accompany }
. q{"ticket_url" parameter};
$url = encode_entities($url, '<>&"');
! $msg =~ s|$regex|sprintf qq{<a href="$url">$1</a>}, $1|ige;
}
else {