git-svn-id: http://svn.redmine.org/redmine/trunk@13524 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/3.0.0
@@ -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 |