diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 11:05:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-04 11:05:02 +0000 |
commit | af75583b23db2bc6848fa1131cf9f66f073c8549 (patch) | |
tree | f5667c3b633791122faaa9138c03ae52f34f3789 /app/controllers/attachments_controller.rb | |
parent | 8db9ffbd8bda68a98ac5896dc0d5f3bfba4c7b70 (diff) | |
download | redmine-af75583b23db2bc6848fa1131cf9f66f073c8549.tar.gz redmine-af75583b23db2bc6848fa1131cf9f66f073c8549.zip |
Adds Redmine::Utils.random_hex for generating a random hex string.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9071 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/attachments_controller.rb')
-rw-r--r-- | app/controllers/attachments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index 9d77993ab..37b256a94 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -69,7 +69,7 @@ class AttachmentsController < ApplicationController @attachment = Attachment.new(:file => request.body) @attachment.author = User.current - @attachment.filename = ActiveSupport::SecureRandom.hex(16) + @attachment.filename = Redmine::Utils.random_hex(16) if @attachment.save respond_to do |format| |