]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 370398: Dependency graph wrong url path under mod_perl
authormkanat%bugzilla.org <>
Thu, 26 Jul 2007 11:56:58 +0000 (11:56 +0000)
committermkanat%bugzilla.org <>
Thu, 26 Jul 2007 11:56:58 +0000 (11:56 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

showdependencygraph.cgi

index 806d80ab5b9014cd5a0be9dbb2bdedc81e213326..0d7430497806cb673b044396454b65eb1d241db0 100755 (executable)
@@ -249,7 +249,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;