summaryrefslogtreecommitdiffstats
path: root/showdependencygraph.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'showdependencygraph.cgi')
-rwxr-xr-xshowdependencygraph.cgi2
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;