Skip to content

Commit e24c76b

Browse files
loopsgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d1926f6 commit e24c76b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-instaweb.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ apache2_conf () {
256256
mkdir -p "$GIT_DIR/gitweb/logs"
257257
bind=
258258
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"
260260
cat > "$conf" <<EOF
261261
ServerName "git-instaweb"
262262
ServerRoot "$fqgitdir/gitweb"
@@ -272,7 +272,7 @@ EOF
272272
fi
273273
done
274274
cat >> "$conf" <<EOF
275-
TypesConfig $fqgitdir/mime.types
275+
TypesConfig "$fqgitdir/mime.types"
276276
DirectoryIndex gitweb.cgi
277277
EOF
278278

0 commit comments

Comments
 (0)