From: Robert 'phaylon' Sedlacek Date: Wed, 20 Jun 2012 21:26:29 +0000 (+0000) Subject: fixed link title encoding issue X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5af88d19ca808d9f8b1e3898e93bedfd0a2b39a3;p=scpubgit%2FJSON-Tree-Viewer.git fixed link title encoding issue --- diff --git a/br.pl b/br.pl index f900028..1181443 100644 --- a/br.pl +++ b/br.pl @@ -160,9 +160,10 @@ sub link_to { my ($self, @to) = @_; use HTML::Tags; my @link = map { - s{\\}{\\\\}g; - s{/}{\\/}g; - $_; + my $link = $_; + $link =~ s{\\}{\\\\}g; + $link =~ s{/}{\\/}g; + $link; } @to; my $link = join('/', @link, ''); my $to = $to[-1];