[前][次][番号順一覧][スレッド一覧]

ruby-changes:38416

From: nobu <ko1@a...>
Date: Fri, 15 May 2015 17:59:53 +0900 (JST)
Subject: [ruby-changes:38416] nobu:r50497 (trunk): cookie.rb: revert part of r50496

nobu	2015-05-15 17:59:33 +0900 (Fri, 15 May 2015)

  New Revision: 50497

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50497

  Log:
    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.

  Modified files:
    trunk/lib/cgi/cookie.rb
Index: lib/cgi/cookie.rb
===================================================================
--- lib/cgi/cookie.rb	(revision 50496)
+++ lib/cgi/cookie.rb	(revision 50497)
@@ -128,7 +128,8 @@ class CGI https://github.com/ruby/ruby/blob/trunk/lib/cgi/cookie.rb#L128
     #
     # +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.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]