summaryrefslogtreecommitdiff
path: root/lib/net/smtp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/smtp.rb')
-rw-r--r--lib/net/smtp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 57dee9a496..7c9d9388ef 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -837,7 +837,7 @@ module Net
def rcptto(to_addr)
if $SAFE > 0
- raise SecurityError, 'tainted to_addr' if to.tainted?
+ raise SecurityError, 'tainted to_addr' if to_addr.tainted?
end
getok("RCPT TO:<#{to_addr}>")
end