Permalink
Browse files

Marshal.load raises ArgumentError on unknown class/modules (closes #791)

  • Loading branch information...
tmm1 committed Mar 25, 2011
1 parent c52ecba commit b6539993f2ba252f32cf55dabd26a0368f4492b7
Showing with 2 additions and 0 deletions.
  1. +2 −0 kernel/common/marshal.rb
View
@@ -921,6 +921,8 @@ def self.load(obj, proc = nil)
ms = State.new data, nil, proc
ms.construct
rescue NameError => e
raise ArgumentError, e.message
end
class << self

0 comments on commit b653999

Please sign in to comment.