Bug 312304: Graphviz installation for Bugzilla doesn't work if spaces are in the path to dot.exe.

Patch by Marc Schumann <wurblzap@gmail.com>,
r=LpSolit, a=justdave
This commit is contained in:
wurblzap%gmail.com 2006-02-07 09:22:25 +00:00
parent 961761ffa1
commit 6a47e5679b

View File

@ -232,7 +232,7 @@ if ($webdotbase =~ /^https?:/) {
SUFFIX => '.png',
DIR => $webdotdir);
binmode $pngfh;
open(DOT, "$webdotbase -Tpng $filename|");
open(DOT, "\"$webdotbase\" -Tpng $filename|");
binmode DOT;
print $pngfh $_ while <DOT>;
close DOT;
@ -251,7 +251,7 @@ if ($webdotbase =~ /^https?:/) {
SUFFIX => '.map',
DIR => $webdotdir);
binmode $mapfh;
open(DOT, "$webdotbase -Tismap $filename|");
open(DOT, "\"$webdotbase\" -Tismap $filename|");
binmode DOT;
print $mapfh $_ while <DOT>;
close DOT;