mirror of
https://github.com/discourse/discourse.git
synced 2025-03-11 05:45:30 +08:00
SECURITY: Avoid the use of Object#send
in Onebox::Engine::StandardEmbed
Use `Object#public_send` instead which is much safer
This commit is contained in:
parent
26aef0c288
commit
6ce5673d2c
@ -161,7 +161,7 @@ module Onebox
|
|||||||
|
|
||||||
def set_from_normalizer_data(normalizer)
|
def set_from_normalizer_data(normalizer)
|
||||||
normalizer.data.each do |k, _|
|
normalizer.data.each do |k, _|
|
||||||
v = normalizer.send(k)
|
v = normalizer.public_send(k)
|
||||||
@raw[k] ||= v unless v.nil?
|
@raw[k] ||= v unless v.nil?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user