]> source.dussan.org Git - redmine.git/commitdiff
Removed unused instance variable.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Oct 2014 18:50:25 +0000 (18:50 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 28 Oct 2014 18:50:25 +0000 (18:50 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13524 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/attachment.rb

index 892d5c3752624cba5766daa9cb18c53b85942142..da82088f2e05c9277cdd533dcdfbd2624deb92b1 100644 (file)
@@ -309,7 +309,7 @@ class Attachment < ActiveRecord::Base
     just_filename = value.gsub(/\A.*(\\|\/)/m, '')
 
     # Finally, replace invalid characters with underscore
-    @filename = just_filename.gsub(/[\/\?\%\*\:\|\"\'<>\n\r]+/, '_')
+    just_filename.gsub(/[\/\?\%\*\:\|\"\'<>\n\r]+/, '_')
   end
 
   # Returns the subdirectory in which the attachment will be saved