From 8ce61a1c54c91ef3977f09c8896bb2cd20490989 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 26 Jul 2007 11:55:56 +0000 Subject: Bug 370398: Dependency graph wrong url path under mod_perl Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- showdependencygraph.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'showdependencygraph.cgi') diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 4e9299a73..fd042f436 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -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; -- cgit v1.2.3-24-g4f1b