summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2018-02-14 14:59:11 +0100
committerJames Lopez <james@jameslopez.es>2018-02-14 14:59:11 +0100
commit0abd85f919053efa8a03add9ae43ce9ea2d02ae5 (patch)
tree9fe05fc39b53efab92c81e4818633cb36ff45265 /lib
parent2dc2bad6233e1e74c74c49af4be838e0a39dcd53 (diff)
downloadgitlab-ce-0abd85f919053efa8a03add9ae43ce9ea2d02ae5.tar.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/api/project_import.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/project_import.rb b/lib/api/project_import.rb
index 88fe1d2b5f5..a6da9b90fe3 100644
--- a/lib/api/project_import.rb
+++ b/lib/api/project_import.rb
@@ -31,7 +31,7 @@ module API
success Entities::ProjectImportStatus
end
post 'import' do
- render_api_error!('The file is invalid', 400) unless file_is_valid?
+ validate_file!
Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42437')