From 2de9e49f22008c25fccfe79396e42e80b7c56cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Wed, 11 Sep 2013 01:27:48 -0300 Subject: Since we're at it secure create-bare-repo too --- git-shell-commands/create-bare-repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-shell-commands/create-bare-repo b/git-shell-commands/create-bare-repo index 6c83bc6..1e06580 100755 --- a/git-shell-commands/create-bare-repo +++ b/git-shell-commands/create-bare-repo @@ -7,7 +7,7 @@ set -e for i in $@; do # Cleanup names - repo="`echo "$i" | sed "s/[^a-z0-9\._-]//gi"`" + repo="`echo "$repo" | sed -e "s,^[/\.]\+,,g" -e "s,[^a-z0-9\./_-],,gi"`" if [ -z "$repo" ]; then continue; fi -- cgit v1.2.3