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

@@ -57,7 +57,9 @@ Ext.apply(Ext.form.VTypes, {
&& ! val.contains('..')
&& ! val.endsWith('/.')
&& ! val.endsWith('/')
&& ! val.endsWith('.');
&& ! val.endsWith('.')
&& ! val.contains('/./')
&& ! val.contains('//');
},
repositoryNameText: 'The name of the repository is invalid.',