mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-13 13:31:19 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
Database/PreventWildcardInjection:
|
|
||||||
Details: grace period
|
|
||||||
Exclude:
|
|
||||||
- 'ee/app/models/ee/note.rb'
|
|
||||||
- 'ee/app/models/geo_node.rb'
|
|
||||||
- 'ee/app/models/vulnerabilities/read.rb'
|
|
||||||
- 'lib/gitlab/seeder.rb'
|
|
@ -7,4 +7,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/551832
|
|||||||
milestone: '18.2'
|
milestone: '18.2'
|
||||||
group: group::optimize
|
group: group::optimize
|
||||||
type: beta
|
type: beta
|
||||||
default_enabled: false
|
default_enabled: true
|
||||||
|
@ -17,7 +17,7 @@ module Gitlab
|
|||||||
|
|
||||||
included do
|
included do
|
||||||
scope :not_mass_generated, -> do
|
scope :not_mass_generated, -> do
|
||||||
where.not("path LIKE '#{MASS_INSERT_GROUP_START}%'")
|
where.not("path LIKE '#{sanitize_sql_like(MASS_INSERT_GROUP_START)}%'")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -27,7 +27,7 @@ module Gitlab
|
|||||||
|
|
||||||
included do
|
included do
|
||||||
scope :not_mass_generated, -> do
|
scope :not_mass_generated, -> do
|
||||||
where.not("path LIKE '#{MASS_INSERT_PROJECT_START}%'")
|
where.not("path LIKE '#{sanitize_sql_like(MASS_INSERT_PROJECT_START)}%'")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -37,7 +37,10 @@ module Gitlab
|
|||||||
|
|
||||||
included do
|
included do
|
||||||
scope :not_mass_generated, -> do
|
scope :not_mass_generated, -> do
|
||||||
where.not("username LIKE '#{MASS_INSERT_USER_START}%' OR username LIKE '#{REPORTED_USER_START}%'")
|
where.not(
|
||||||
|
"username LIKE '#{sanitize_sql_like(MASS_INSERT_USER_START)}%' OR " \
|
||||||
|
"username LIKE '#{sanitize_sql_like(REPORTED_USER_START)}%'"
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user