lib/openwfe/util/dollar.rb in openwferu-0.9.8 vs lib/openwfe/util/dollar.rb in openwferu-0.9.9
- old
+ new
@@ -46,11 +46,11 @@
# 'dollar notation' implementation in Ruby
#
module OpenWFE
- SAFETY_LEVEL = 3
+ DSUB_SAFETY_LEVEL = 3
#
# Ruby code ${ruby:...} will be evaluated with this
# safety level.
# (see http://www.rubycentral.com/book/taint.html )
@@ -213,10 +213,12 @@
# some simple notations made available to ${ruby:...}
# notations
#eval(ruby_code, binding).to_s
#eval(ruby_code).to_s
- OpenWFE::eval_safely(ruby_code, SAFETY_LEVEL, binding()).to_s
+
+ OpenWFE::eval_safely(
+ ruby_code, DSUB_SAFETY_LEVEL, binding()).to_s
end
end
end