diff options
author | 2007-07-26 11:55:56 +0000 | |
---|---|---|
committer | 2007-07-26 11:55:56 +0000 | |
commit | 8ce61a1c54c91ef3977f09c8896bb2cd20490989 (patch) | |
tree | 8fc2fc9c99506ff9eb9acc55af66a120cf16484e /showdependencygraph.cgi | |
parent | Bug 389407: api/Bugzilla/Auth.html incorrectly detected by t/009bugwords.t - ... (diff) | |
download | bugzilla-8ce61a1c54c91ef3977f09c8896bb2cd20490989.tar.gz bugzilla-8ce61a1c54c91ef3977f09c8896bb2cd20490989.tar.bz2 bugzilla-8ce61a1c54c91ef3977f09c8896bb2cd20490989.zip |
Bug 370398: Dependency graph wrong url path under mod_perl
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'showdependencygraph.cgi')
-rwxr-xr-x | showdependencygraph.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
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; |