Trivial path quoting fixes in git-instaweb
Bodo Schlecht noticed that Instaweb didn't propely quote all path instances in the Apache config file it generated. Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Sean Estabrooks committed
Jul 18, 2009 at 09:45 UTC
e24c76bf09576e0d197db1e40dff655a75e9efe1
1 file changed
+2
-2
git-instaweb.sh
+2
-2
@@ -256,7 +256,7 @@ apache2_conf () {
256
mkdir -p "$GIT_DIR/gitweb/logs"
257
bind=
258
test x"$local" = xtrue && bind='127.0.0.1:'
259
- echo 'text/css css' > $fqgitdir/mime.types
259
+ echo 'text/css css' > "$fqgitdir/mime.types"
260
cat > "$conf" <<EOF
261
ServerName "git-instaweb"
262
ServerRoot "$fqgitdir/gitweb"
@@ -272,7 +272,7 @@ EOF
272
fi
273
done
274
cat >> "$conf" <<EOF
275
-TypesConfig $fqgitdir/mime.types
275
+TypesConfig "$fqgitdir/mime.types"
276
DirectoryIndex gitweb.cgi
277
EOF
278