This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 9138faa more classes need to be permitted
9138faa is described below
commit 9138faa637f75c28d13a9da11d605808e72fee5b
Author: Sam Ruby <[email protected]>
AuthorDate: Sun Jan 16 15:48:51 2022 -0500
more classes need to be permitted
---
www/board/agenda/models/agenda.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/board/agenda/models/agenda.rb
b/www/board/agenda/models/agenda.rb
index 56be0b1..0de17b5 100755
--- a/www/board/agenda/models/agenda.rb
+++ b/www/board/agenda/models/agenda.rb
@@ -36,7 +36,7 @@ class Agenda
if File.exist?(path) and File.mtime(path) != data[:mtime]
File.open(path) do |fh|
fh.flock(File::LOCK_SH)
- data = YAML.load(fh.read)
+ data = YAML.safe_load(fh.read, permitted_classes: [Symbol, Time])
end
@@cache[file] = data
end