From: mkanat%bugzilla.org <> Date: Thu, 26 Jul 2007 11:56:58 +0000 (+0000) Subject: Bug 370398: Dependency graph wrong url path under mod_perl X-Git-Tag: bugzilla-3.0.1~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddcfd897f5c9d7bbbd61192ec5e09d0cf85fbf20;p=thirdparty%2Fbugzilla.git Bug 370398: Dependency graph wrong url path under mod_perl Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index 806d80ab5b..0d74304978 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -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;