do not allow "/./" or "//" in repository names

This commit is contained in:
Sebastian Sdorra
2012-05-11 17:00:19 +02:00
parent 0ca618bd03
commit 9850fbbda5
3 changed files with 8 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ public class ValidationUtil
{
return Util.isNotEmpty(name) && name.matches(REGEX_REPOSITORYNAME)
&&!name.contains("..") &&!name.endsWith("/.") &&!name.endsWith(".")
&&!name.endsWith("/");
&&!name.endsWith("/") &&!name.contains("/./") &&!name.contains("//");
}
/**