Only accept ./ and ../

This commit is contained in:
Robson Roberto Souza Peixoto
2017-04-13 14:30:00 -03:00
parent dfc4b0293f
commit a61ae2a5b3
+1 -1
View File
@@ -45,7 +45,7 @@ func (helm *execer) UpdateRepo() error {
}
func normalizeChart(chart string) (string, error) {
regex, err := regexp.Compile("^[.]?[.]?/")
regex, err := regexp.Compile("^[.]?./")
if err != nil {
return "", err
}