mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Ruby: Add new test case for rb/code-injection
This commit is contained in:
@@ -37,8 +37,8 @@ class UsersController < ActionController::Base
|
||||
# BAD
|
||||
eval(Regexp.escape(code))
|
||||
|
||||
|
||||
|
||||
# BAD
|
||||
ActiveJob::Serializers.deserialize(code)
|
||||
end
|
||||
|
||||
def update
|
||||
|
||||
Reference in New Issue
Block a user