users: disallow more names ending with file extensions.
Disallow any name that has a suffix registered as a file extension in Rails.
This commit is contained in:
@@ -9,3 +9,4 @@ Mime::Type.register "image/webp", :webp
|
||||
Mime::Type.register "image/avif", :avif
|
||||
|
||||
Mime::Type.register "application/x-shockwave-flash", :swf
|
||||
Mime::Type.register "application/vnd.microsoft.portable-executable", :exe
|
||||
|
||||
Reference in New Issue
Block a user