mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
SECURITY: CSRF vulnerabilities in Admin::BackupsController
.
This commit is contained in:
@ -75,18 +75,6 @@ describe Admin::BackupsController do
|
||||
|
||||
end
|
||||
|
||||
describe ".cancel" do
|
||||
|
||||
it "cancels an export" do
|
||||
BackupRestore.expects(:cancel!)
|
||||
|
||||
xhr :delete, :cancel
|
||||
|
||||
expect(response).to be_success
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
describe ".show" do
|
||||
|
||||
it "uses send_file to transmit the backup" do
|
||||
@ -212,18 +200,6 @@ describe Admin::BackupsController do
|
||||
|
||||
end
|
||||
|
||||
describe ".rollback" do
|
||||
|
||||
it "rolls back to previous working state" do
|
||||
BackupRestore.expects(:rollback!)
|
||||
|
||||
xhr :get, :rollback
|
||||
|
||||
expect(response).to be_success
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
describe ".readonly" do
|
||||
|
||||
it "enables readonly mode" do
|
||||
|
Reference in New Issue
Block a user