Commit 8ce61a1c authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 370398: Dependency graph wrong url path under mod_perl

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent af19852c
......@@ -271,7 +271,7 @@ if ($webdotbase =~ /^https?:/) {
# Under mod_perl, pngfilename will have an absolute path, and we
# need to make that into a relative path.
my $cgi_root = bz_locations()->{cgi_path};
$pngfilename =~ s/^\Q$cgi_root\E//;
$pngfilename =~ s#^\Q$cgi_root\E/?##;
$vars->{'image_url'} = $pngfilename;
......
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