Disallow dots in repository names to fix reflected text "attack"
Fixes https://jira.coreos.com/browse/QS-125
This commit is contained in:
parent
b29e8202e5
commit
ede3a81c68
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import anunidecode # Don't listen to pylint's lies. This import is required for
|
|||
|
||||
from uuid import uuid4
|
||||
|
||||
REPOSITORY_NAME_REGEX = re.compile(r'^[\.a-zA-Z0-9_-]+$')
|
||||
REPOSITORY_NAME_REGEX = re.compile(r'^[a-zA-Z0-9_-]+$')
|
||||
|
||||
VALID_TAG_PATTERN = r'[\w][\w.-]{0,127}'
|
||||
FULL_TAG_PATTERN = r'^[\w][\w.-]{0,127}$'
|
||||
|
|
Reference in a new issue