diff options
Diffstat (limited to 'Doc/perl/l2hinit.perl')
-rw-r--r-- | Doc/perl/l2hinit.perl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index 92ad45a..9c92819 100644 --- a/Doc/perl/l2hinit.perl +++ b/Doc/perl/l2hinit.perl @@ -251,9 +251,12 @@ sub img_tag { ,'border=', $nav_border, ' alt="', $alt ,'" src="', $icon, '">' ); } - return join('', '<img ', $iconsizes{$1}, $align - ,'border=', $nav_border, ' alt="', $alt, "\"\n" - ,' src="', $ICONSERVER, "/$icon", '">' ); + my $s = join('', '<img ', $iconsizes{$1}, $align, + 'border=', $nav_border, ' alt="', $alt, "\"\n", + ' src="', $ICONSERVER, "/$icon", '">' ); + # if $ICONSERVER starts with "./", remove "./": + $s =~ s|src="(.\/)+|src="|; + return $s; } else { return $icon; |