Skip to content

Commit 058ee0c

Browse files
committed
🔒️ Prevent Mass Assignment vulnerability
1 parent a340406 commit 058ee0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/masq/sites_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def find_personas
5151
end
5252

5353
def site_params
54-
params.require(:site).permit!
54+
params.require(:site).permit(:persona_id)
5555
end
5656
end
5757
end

0 commit comments

Comments
 (0)