From 7bea99148c4ba3aa3bb6bfad8ec841290a3f55fe Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Thu, 19 May 2011 08:54:23 +0530 Subject: [PATCH] tighten up adc arguments a bit more --- src/gitolite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitolite.pm b/src/gitolite.pm index 1f75a35..1a00b4f 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -1087,7 +1087,7 @@ sub try_adc { if (-x "$GL_ADC_PATH/$cmd") { die "I don't like $cmd\n" if $cmd =~ /\.\./; # yes this is rather strict, sorry. - do { die "I don't like $_\n" unless $_ =~ $ADC_CMD_ARGS_PATT } for ($cmd, @args); + do { die "I don't like $_\n" unless $_ =~ $ADC_CMD_ARGS_PATT and $_ !~ m(\.\./) } for ($cmd, @args); log_it("$GL_ADC_PATH/$ENV{SSH_ORIGINAL_COMMAND}"); exec("$GL_ADC_PATH/$cmd", @args); }