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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
ed32a973
Commit
ed32a973
authored
Apr 26, 2019
by
charlieablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tighten up prohibited_key method
parent
706c6216
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
lib/gitlab/import_export/attribute_cleaner.rb
lib/gitlab/import_export/attribute_cleaner.rb
+3
-4
No files found.
lib/gitlab/import_export/attribute_cleaner.rb
View file @
ed32a973
...
@@ -28,11 +28,10 @@ module Gitlab
...
@@ -28,11 +28,10 @@ module Gitlab
return
true
if
'cached_markdown_version'
.
equal?
(
key
)
return
true
if
'cached_markdown_version'
.
equal?
(
key
)
prohibited_suffi
c
es
=
%w(_id _html)
prohibited_suffi
x
es
=
%w(_id _html)
prohibited_suffi
ces
.
each
do
|
suffix
|
prohibited_suffi
xes
.
any?
do
|
suffix
|
return
true
if
key
.
end_with?
(
suffix
)
true
if
key
.
end_with?
(
suffix
)
end
end
false
end
end
def
allowed_reference?
(
key
)
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