Skip to content
Snippets Groups Projects
Commit d75a8297 authored by Robert Speicher's avatar Robert Speicher
Browse files

Add '.well-known' to the list of reserved namespaces

parent 7a779981
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,7 +5,8 @@
# Values are checked for formatting and exclusion from a list of reserved path
# names.
class NamespaceValidator < ActiveModel::EachValidator
RESERVED = %w(
RESERVED = %w[
.well-known
admin
all
assets
Loading
Loading
@@ -31,7 +32,7 @@ class NamespaceValidator < ActiveModel::EachValidator
u
unsubscribes
users
).freeze
].freeze
 
def validate_each(record, attribute, value)
unless value =~ Gitlab::Regex.namespace_regex
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment