mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Ensure request.body isn't emptied out before signature verification (#10432)
Fixes #10429
This commit is contained in:
parent
59cce07601
commit
68c797bece
@ -32,7 +32,10 @@ class ActivityPub::InboxesController < Api::BaseController
|
||||
end
|
||||
|
||||
def body
|
||||
@body ||= request.body.read.force_encoding('UTF-8')
|
||||
return @body if defined?(@body)
|
||||
@body = request.body.read.force_encoding('UTF-8')
|
||||
request.body.rewind if request.body.respond_to?(:rewind)
|
||||
@body
|
||||
end
|
||||
|
||||
def upgrade_account
|
||||
|
Loading…
Reference in New Issue
Block a user