@@ -309,7 +309,7 class Attachment < ActiveRecord::Base | |||
|
309 | 309 | just_filename = value.gsub(/\A.*(\\|\/)/m, '') |
|
310 | 310 | |
|
311 | 311 | # Finally, replace invalid characters with underscore |
|
312 |
|
|
|
312 | just_filename.gsub(/[\/\?\%\*\:\|\"\'<>\n\r]+/, '_') | |
|
313 | 313 | end |
|
314 | 314 | |
|
315 | 315 | # Returns the subdirectory in which the attachment will be saved |
General Comments 0
You need to be logged in to leave comments.
Login now