Repository navigation
Commit 5e6de36
webdev778
Fix Interscript for new Psych releases
Psych (the Ruby YAML library) has changed semantics of `YAML.load`
frim being `unsafe_load` by default, to being `safe_load`.
`safe_load` differs from `unsafe_load` by whitelisting a number of
classes.
We rely on the old behavior, as some maps contain date in the Date
format and Date is not in a whitelisted set.
Older versions of Psych may not support a `unsafe_load` method and
those versions are chosen for certain older Ruby versions that we
support.
The question of safety in this case is secondary, since the maps
are already executed as Ruby code.1 parent d7c8e16 commit 5e6de36
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
| |||
0 commit comments