mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
dangerous extension error
This commit is contained in:
1 parent
32691b0c0d
commit
b4d5a2cad4
3 files changed
+30
-3
No files matched your search
@@ -34,6 +34,8 @@ module Api
|
||||
end
|
||||
|
||||
render json: attachment.as_json(only: %i[uuid created_at], methods: %i[url filename content_type])
|
||||
rescue Submitters::MaliciousFileExtension => e
|
||||
render json: { error: e.message }, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
def build_new_cookie_signatures_json(submitter, attachment)
|
||||
|
||||
Reference in new issue
Block a user