mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Document and test YAML.safe_load
This commit is contained in:
@@ -38,4 +38,10 @@ class UsersController < ActionController::Base
|
||||
yaml_data = params[:key]
|
||||
object = YAML.load yaml_data
|
||||
end
|
||||
|
||||
# GOOD
|
||||
def route6
|
||||
yaml_data = params[:key]
|
||||
object = YAML.safe_load yaml_data
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user