aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAndre Arko2009-09-28 14:10:20 -0700
committerMax Howell2009-09-29 23:34:16 +0100
commit64bab9d746f005a83bb4a164885869128e784547 (patch)
tree868fd8cf5dc6a9d0d74b0fdf9b06b58e58bacebb /Library
parentd3954d3d77e9e95327e2d54d98a9dae806acc24e (diff)
downloadbrew-64bab9d746f005a83bb4a164885869128e784547.tar.bz2
eval bad
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index ad6794c1e..ef3674453 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -335,10 +335,10 @@ private
end
def validate_variable name
- v=eval "@#{name}"
+ v = instance_variable_get("@#{name}")
raise "Invalid @#{name}" if v.to_s.empty? or v =~ /\s/
end
-
+
def set_instance_variable(type)
if !instance_variable_defined?("@#{type}")
class_value = self.class.send(type)