Kaydet (Commit) d3d28d39 authored tarafından Fred Drake's avatar Fred Drake

img_tag(): Tighten up the generated SRC attribute a bit; if the image

            relative URL starts with "./", remove "./".
üst d52879cc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment