Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
4bd331a5
Commit
4bd331a5
authored
Apr 26, 2019
by
charlieablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tighten up prohibited_key method
parent
8eae788f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib/gitlab/import_export/attribute_cleaner.rb
lib/gitlab/import_export/attribute_cleaner.rb
+2
-3
No files found.
lib/gitlab/import_export/attribute_cleaner.rb
View file @
4bd331a5
...
...
@@ -29,10 +29,9 @@ module Gitlab
return
true
if
'cached_markdown_version'
.
equal?
(
key
)
prohibited_suffixes
=
%w(_id _html)
prohibited_suffixes
.
each
do
|
suffix
|
return
true
if
key
.
end_with?
(
suffix
)
prohibited_suffixes
.
any?
do
|
suffix
|
true
if
key
.
end_with?
(
suffix
)
end
false
end
def
allowed_reference?
(
key
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment