Changed \w in sanitize_filename to A-Za-z0-9 in order to be less generalizing
This commit is contained in:
Родитель
834553ad3d
Коммит
d10004bfec
|
@ -378,7 +378,7 @@ module Technoweenie # :nodoc:
|
|||
name.gsub! /^.*(\\|\/)/, ''
|
||||
|
||||
# Finally, replace all non alphanumeric, underscore or periods with underscore
|
||||
name.gsub! /[^\w\.\-]/, '_'
|
||||
name.gsub! /[^A-Za-z0-9\.\-]/, '_'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче