зеркало из https://github.com/github/ruby.git
[DOC] security.rdoc: fix YAML security documentation
Since fbb4e3f96c
`YAML` does not unmarshal arbitrary ruby objects.
This commit is contained in:
Родитель
5c32b31aee
Коммит
7a398adc2f
|
@ -37,7 +37,7 @@ programs for configuration and database persistence of Ruby object trees.
|
|||
|
||||
Similar to +Marshal+, it is able to deserialize into arbitrary Ruby classes.
|
||||
For example, the following YAML data will create an +ERB+ object when
|
||||
deserialized:
|
||||
deserialized, using the `unsafe_load` method:
|
||||
|
||||
!ruby/object:ERB
|
||||
src: puts `uname`
|
||||
|
|
Загрузка…
Ссылка в новой задаче