summaryrefslogtreecommitdiff
path: root/app/uploaders/file_uploader.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2019-07-04 06:06:31 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-07-04 06:06:31 +0000
commit523f69ee6ba6cc4088b97a50126d28a36dcc4c99 (patch)
tree568edfa707f355ab29b511cdb89c79f7cbd4aa55 /app/uploaders/file_uploader.rb
parentffdb1c1b100b9fd05fdcc790116250c85aa45ca8 (diff)
parent76b0518f334090294d4ad7db7be64846f6018e80 (diff)
downloadgitlab-ce-523f69ee6ba6cc4088b97a50126d28a36dcc4c99.tar.gz
Merge branch '53357-fix-plus-in-upload-file-names' into 'master'
Use GitlabUploader#filename when generating upload URLs See merge request gitlab-org/gitlab-ce!29915
Diffstat (limited to 'app/uploaders/file_uploader.rb')
-rw-r--r--app/uploaders/file_uploader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/uploaders/file_uploader.rb b/app/uploaders/file_uploader.rb
index 1c7582533ad..b326b266017 100644
--- a/app/uploaders/file_uploader.rb
+++ b/app/uploaders/file_uploader.rb
@@ -203,6 +203,6 @@ class FileUploader < GitlabUploader
end
def secure_url
- File.join('/uploads', @secret, file.filename)
+ File.join('/uploads', @secret, filename)
end
end