mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
check signed blob data purpose
This commit is contained in:
1 parent
4ad58fc285
commit
c81b4d855b
1 file changed
+2
-2
@@ -10,9 +10,9 @@ module Api
|
||||
before_action :set_cors_headers
|
||||
|
||||
def show
|
||||
blob_uuid, = ApplicationRecord.signed_id_verifier.verified(params[:signed_uuid])
|
||||
blob_uuid, purp = ApplicationRecord.signed_id_verifier.verified(params[:signed_uuid])
|
||||
|
||||
if blob_uuid.blank?
|
||||
if blob_uuid.blank? || purp != 'blob'
|
||||
Rollbar.error('Blob not found') if defined?(Rollbar)
|
||||
|
||||
return head :not_found
|
||||
|
||||
Reference in new issue
Block a user