Skip to content

Commit 0aab670

Browse files
committed
Ruby: add missing example rails action
1 parent 45ed5a8 commit 0aab670

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ruby/ql/test/query-tests/security/cwe-352/railsapp/app/controllers/articles_controller.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ def delete_authored_article
99
article.destroy
1010
end
1111

12+
def change_title
13+
article.title = params[:article_title]
14+
article.save!
15+
end
16+
1217
def article
1318
@article ||= Article.find(params[:article_id])
1419
end

0 commit comments

Comments
 (0)