Skip to content

Commit

Permalink
Merge remote-tracking branch 'seantan/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
qqshfox committed Mar 19, 2013
2 parents 03dbc3d + 9c22228 commit 44a2b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubyamf/model.rb
Expand Up @@ -115,7 +115,7 @@ def rubyamf_set_non_attributes attrs, base_attrs
not_attributes = attrs.keys.select {|k| !base_attrs.include?(k)}
not_attributes.each do |k|
setter = "#{k}="
next if setter !~ /^[a-z][A-Za-z0-9_]+=/ # Make sure setter doesn't start with capital, dollar, or underscore to make this safer
next if setter !~ /^[a-z][A-Za-z0-9_]*=/ # Make sure setter doesn't start with capital, dollar, or underscore to make this safer
if respond_to?(setter)
send(setter, attrs.delete(k))
else
Expand Down

0 comments on commit 44a2b4b

Please sign in to comment.