mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-13 00:45:44 +01:00
do not allow "/./" or "//" in repository names
This commit is contained in:
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user