diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2019-07-04 06:06:31 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-07-04 06:06:31 +0000 |
commit | 523f69ee6ba6cc4088b97a50126d28a36dcc4c99 (patch) | |
tree | 568edfa707f355ab29b511cdb89c79f7cbd4aa55 /app/uploaders/file_uploader.rb | |
parent | ffdb1c1b100b9fd05fdcc790116250c85aa45ca8 (diff) | |
parent | 76b0518f334090294d4ad7db7be64846f6018e80 (diff) | |
download | gitlab-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.rb | 2 |
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 |