aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cgi
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-15 08:59:33 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-15 08:59:33 +0000
commitab64d3dc7f0479d6501fc3ad70134c483d7a8749 (patch)
tree772bff84a7e9729b1709be2b68de3b561eb79b84 /lib/cgi
parent62b8049e68e5a2281a09826c003509acf07cfb79 (diff)
downloadruby-ab64d3dc7f0479d6501fc3ad70134c483d7a8749.tar.gz
cookie.rb: revert part of r50496
* lib/cgi/cookie.rb (CGI::Cookie#secure): revert part of r50496, which is irrelevant to GH-887, as the document states that the argument must be a boolean. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi')
-rw-r--r--lib/cgi/cookie.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb
index eb100be1c2..f92e535bb8 100644
--- a/lib/cgi/cookie.rb
+++ b/lib/cgi/cookie.rb
@@ -128,7 +128,8 @@ class CGI
#
# +val+ must be a boolean.
def secure=(val)
- @secure = !!val
+ @secure = val if val == true or val == false
+ @secure
end
# Set whether the Cookie is a httponly cookie or not.