[DOC] security.rdoc: fix YAML security documentation
Since fbb4e3f96c
`YAML` does not unmarshal arbitrary ruby objects.
This commit is contained in:
parent
5c32b31aee
commit
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.
|
Similar to +Marshal+, it is able to deserialize into arbitrary Ruby classes.
|
||||||
For example, the following YAML data will create an +ERB+ object when
|
For example, the following YAML data will create an +ERB+ object when
|
||||||
deserialized:
|
deserialized, using the `unsafe_load` method:
|
||||||
|
|
||||||
!ruby/object:ERB
|
!ruby/object:ERB
|
||||||
src: puts `uname`
|
src: puts `uname`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user