lib/openwfe/util/safe.rb in openwferu-0.9.6 vs lib/openwfe/util/safe.rb in openwferu-0.9.7
- old
+ new
@@ -92,9 +92,11 @@
#
# Runs some code within an instance's realm at a certain safety level.
#
def OpenWFE.instance_eval_safely (instance, code, safe_level)
+ code.untaint
+
r = nil
Thread.new do
$SAFE = safe_level
r = instance.instance_eval(code)