Sfoglia il codice sorgente

Removed unused instance variable.

git-svn-id: http://svn.redmine.org/redmine/trunk@13524 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.0.0
Jean-Philippe Lang 9 anni fa
parent
commit
65997d4ff8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      app/models/attachment.rb

+ 1
- 1
app/models/attachment.rb Vedi 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

Loading…
Annulla
Salva